Who read a gpio pin
Posted: Mon Jul 17, 2017 8:36 am
Hello,
I hope I post it in thr right forum.
When I print this code in my ESP8266:
I become this code in the Output:
I hope someone can help me and my English is not so bad:D
Thank you for your help
Felis
I hope I post it in thr right forum.
When I print this code in my ESP8266:
Code: Select all
i = 1
switch1 = 4
gpio.mode(switch1, gpio.INPUT)
while i ==1 do
if gpio.read(switch1) == nil then
print("Hello")
end
end
I become this code in the Output:
Code: Select all
...
Hello
Hello
Hello
Hello
Hellïc_ÇÏRSöfJSúfJSúfêø
NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
Hello
Hello
Hello
...
I hope someone can help me and my English is not so bad:D
Thank you for your help
Felis