Wire up four LED's to pins 0-4 of the Fubarino. Modify the program so that it does nothing until a button is pressed. When the button is pressed, successively light up one LED until all four are lit with a one second delay between each light. Then wait one more second and shut off all LED's. If the button is pressed again it will repeat the behavior described above.
this was the first code of a pull up just a switch
For the button Im just using a wire. i have my ground and 3.3v on the fubrino. thank you im trying Ive been doing this for three weeks until the world fell apart.
Arduino uploads the program but with wrong results. My LED pen0 is blinking with a delay of 1 sec.LED pen3 just stays on and all this is happening with me controling it without a switch. I think I should delete the delay code and replace with (something==HIGH). But I cant figure why the LEDs are even on without the High Switch
In our previous tutorial, we learnt about Blinking a LED using PIC microcontroller and built the same circuit on Perf board. Then we used PICkit 3, ICSP and MPLAB IPE for dumping the program onto our Perf board. Now, in this tutorial we will advance our self to using more pins on the PIC microcontroller myaarpmedicare.com