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:
The pin number "D8" is the only way it works. When I put D1.D8 the led lights half volume constantly without reaction to commands.
Putting 8 - the board resets continuously.
Something strange with pin 8 which is connected to a led:
B4X:
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")
pin7.DigitalWrite(False)
pin8.DigitalWrite(False)
The pin number "D8" is the only way it works. When I put D1.D8 the led lights half volume constantly without reaction to commands.
Putting 8 - the board resets continuously.