I have tried almost everything, nothing worked untill now. BUT when I remove the serial input line from this code, it works well as expected manually. Could someone please tell me how I can use both features in this command?
Thanks
I have tried almost everything, nothing worked untill now. BUT when I remove the serial input line from this code, it works well as expected manually. Could someone please tell me how I can use both features in this command?
Thanks
Do you have gpio.0=1 pulled down with a 10K resistor?
Dave
Always wear safety glasses while programming.
I was not meaning the pins with LEDs.
It sounds like you have gpio.0 connected to a switch of some kind.
When the switch is pressed the pin goes HIGH.
A pull down, resistor to ground(zero rail) will keep the pin LOW, not allowing false signals until the switch is pressed forcing the pin HIGH.
Dave
Always wear safety glasses while programming.
Bookmarks