This is the same as Erel's "Button Example" modified by Klaus. All what I did is replacing the mechanical switch with a touch switch module. So simple that the images speak for themselves.
BTW: for your convenience I am putting the code here.
Code:
Sub Process_Globals
Public Serial1 As Serial
Private pinButton As Pin 'pin for the button
Private pinLED13 As Pin 'pin for the green Led
Private LightOn = False As Boolean
End Sub
Private Sub AppStart
Serial1.Initialize(115200)...
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/28U32Q2
via IFTTT
Aucun commentaire:
Enregistrer un commentaire