Seems this 'Arduino sensor' also works on 3V3 from ESP8266
Connect
- D0 PinIn 3
- + VCC ( 3V3 )
- GND GND
- A0 (not connected / Analog signal)
ESP8266Basic program
' TestKY036 touch' Program to test the value of PinIn and display it
PinIn = 14
timer 1000 , [NewVal]
wait
[NewVal]
cls
msg$ = "<head><meta http-equiv='refresh' content='1'></head><H1>TestPinIn</H1>" & time() & " Pin ( " & PinIn & " ) = " & io( pi , PinIn )
html htmlvar( msg$ )
returngui
wait
end
No comments:
Post a Comment