I used the code from circuito.io tested it followed everything, but my circuit isn’t working. What I am doing wrong? To better explain, I made a simple LED pushbutton circuit to try out my new kit. So everything is connected correctly no errors uploading to the board (I’m using Elegoo Mega2560 not sure how much of a difference it makes) but I ran the test in the monitor the LED lights like it is supposed to, and the button reads “1” on press “0” on NO press. So why when I press the button outside of the monitor the circuit seems to not work at all? Anyone know what I’m doing wrong? Any help/guidance is appreciated.
Hi LaunchPad (can I call you 43-oh? )
I don’t think the sample code is designed to light the LED when you press the button. The only logic coded would be to test that the button works, and to test that the LED works. If you want to make the LED come on when the button is pressed you’ll have to modify the code.
If you don’t know how to do this, please share the address (URL) of your project so that we can see the code, or copy-paste it here and we’ll change it for you, hopefully explaining the changes necessary to achieve what you want.
Hope that helps!