I have got my WeMos D1 and within an hour it was working as a PIR detector with my home control server.
Something strange with pin 8 which is connected to a led:
Code:
Private pin8, pin7, pin6 As Pin
Private D1 As D1Pins
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
pin6.Initialize(D1.D6, pin6.MODE_INPUT_PULLUP)
pin7.Initialize(D1.D7 ,pin7.MODE_OUTPUT)
pin8.Initialize("D8" ,pin8.MODE_OUTPUT)
pin6.AddListener("PIR_StateChanged")...
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2acSddq
via IFTTT
Aucun commentaire:
Enregistrer un commentaire