This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Pixel Paint - Pixel Art By Numbers</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
font-size: 10pt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Capacitive touch gist for FeatherS2 either with an external | |
MPR121 capacitive touch board (adafruit_mpr121 library required) | |
Or using the ESP32 capacitive touch pads A2-A10 | |
''' | |
import time | |
import board | |
try: | |
import adafruit_mpr121 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Full: | |
SELECT ZWAMESSAGE.Z_PK AS PK, ZWAMESSAGE.Z_ENT AS ENT, ZWAMESSAGE.Z_OPT AS OPT, ZCHATSESSION AS 'Chat Session', | |
CASE ZISFROMME WHEN 0 THEN 'Incoming' WHEN 1 THEN 'Outgoing' ELSE ZISFROMME END Direction, | |
CASE ZMESSAGESTATUS WHEN 8 THEN 'Read' WHEN 6 THEN 'Unread' ELSE ZMESSAGESTATUS END Status, | |
CASE ZMESSAGETYPE WHEN 0 THEN 'Text' WHEN 1 THEN 'Picture' WHEN 2 THEN 'Media2' WHEN 4 THEN 'Media4' WHEN 10 THEN 'System Information Message' ELSE ZMESSAGETYPE END 'Message Type', | |
ZSORT AS 'Sort Index', ZMEDIAITEM, ZMESSAGEINFO, datetime(ZMESSAGEDATE + 978307200, 'unixepoch') AS 'Message Date', datetime(ZSENTDATE + 978307200, 'unixepoch') AS 'Sent Date', ZFROMJID, ZTOJID, ZPUSHNAME, ZTEXT AS Text, | |
ZMEDIALOCALPATH AS 'Path', ZXMPPTHUMBPATH, ZTITLE, | |
ZVCARDSTRING, | |
ZMOVIEDURATION, ZMEDIAURLDATE, ZFILESIZE, | |
ZWACHATSESSION.ZMESSAGECOUNTER AS 'Message Counter', ZUNREADCOUNT AS 'Unread Count', ZLASTMESSAGE AS 'Last Message PK', datetime(ZLASTMESSAGEDATE + 978307200, 'unixepoch') AS 'Last Message', ZCONTACTJID, Z |