Sub Process_Globals
Public Serial1 As Serial
Private ttp As TTP229
Private d1pins As D1Pins
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
ttp.Initialize(d1pins.D6, d1pins.D5, "ttp_KeyPressed") 'SCL pin and SDO pin
ttp.Start8Keys
End Sub
Sub ttp_KeyPressed (Key As Byte)
Log("Key down: ", Key)
End Sub