Skip navigation


1 Post authored by: nmmbeginer
ok so i am new to arduino. i am trying to have one button turn on the led witch is in pin 13 and another button to turn it off but im having problems. when i press the button it turns on when i let off the button it goes off.  here is my code so far.   const int buttonPin = 2;     // the number of the pushbutton pin const int ledPin =  13;      // the number of the LED pin const int buttonPin1 = 3; // variables will change: int but ...

Filter Blog

By date: By tag: