gpio dont seem to work
Posted: Fri Jun 07, 2019 11:02 am
I am new to all this so maybe doing something stupid. I have basic installed on a D1 Mini and it's running fine. however when I come to read or write from the gpio nothing seems to happen.
I wrote a simple basic program that turns gpio pins on and then off.
the first thing I noticed is that the program kept exiting, which turned out to be everytime it went past gpio 5 or was it 6 I can't remember but it resets d1 Mini. I assume that the pin in question is connected to a reset so I changed my code to just change the state of the first few pins and the program seems to be running. debug shows the variables of the for next loops all changing correctly however my test meter on the actual gpio shows them to be static. Half of them stuck on and the other half are stuck off. I will do a follow-up post with the exact ins and outs. I only have this smartphone to work with currently so I can't connect to the internet and view the basic without changing ap
I wrote a simple basic program that turns gpio pins on and then off.
the first thing I noticed is that the program kept exiting, which turned out to be everytime it went past gpio 5 or was it 6 I can't remember but it resets d1 Mini. I assume that the pin in question is connected to a reset so I changed my code to just change the state of the first few pins and the program seems to be running. debug shows the variables of the for next loops all changing correctly however my test meter on the actual gpio shows them to be static. Half of them stuck on and the other half are stuck off. I will do a follow-up post with the exact ins and outs. I only have this smartphone to work with currently so I can't connect to the internet and view the basic without changing ap