1
TinyDuino Processors & TinyShields / Push Button Issue
« on: July 17, 2017, 09:26:45 PM »
I am feeling incredibly stupid and after all the things I have made on my own, I cannot seem to get a simple push button to work correctly on the TinyScreen+. I have it connect to a proto board in which I am running a 10K resistor from 5v output to digital pin 5 and pin 5 also to my button. The other button lead to my ground. I have tested it with my multimeter and everything looks a go.
I've set pinMode(5, INPUT); and when I do a digitalRead(5), I get 0 no matter if the button is pressed or not. I have set the pin to HIGH and to LOW. Neither changes the results. I've read so many push button arduino tutorials and debugs, but I can't figure it. I have even used a different Tinyscreen+ just in case something may be wrong with the first's pin 5. What am I not seeing?
I've set pinMode(5, INPUT); and when I do a digitalRead(5), I get 0 no matter if the button is pressed or not. I have set the pin to HIGH and to LOW. Neither changes the results. I've read so many push button arduino tutorials and debugs, but I can't figure it. I have even used a different Tinyscreen+ just in case something may be wrong with the first's pin 5. What am I not seeing?