// constants won't change. They're used here to // set pin numbers: const int buttonPin1 = 2;     // the number of the pushbutton pin const int buttonPin2 = 3;     // the number of the pushbutton pin const int buttonPin3 = 4;     // the number of the pushbutton pin const int speakerPin = 11;    //the number of […]

Read More →

/* Analog Input Demonstrates analog input by reading an analog sensor on analog pin 0 and turning on and off a light emitting diode(LED) connected to digital pin 13. The amount of time the LED will be on and off depends on the value obtained by analogRead(). The circuit: * Potentiometer attached to analog input […]

Read More →

/*   Blink   Turns on an LED on for one second, then off for one second, repeatedly.   Most Arduinos have an on-board LED you can control. On the Uno and   Leonardo, it is attached to digital pin 13. If you're unsure what   pin the on-board LED is connected to on your Arduino model, check   the documentation […]

Read More →

/*   Blink   Turns on an LED on for one second, then off for one second, repeatedly.   Most Arduinos have an on-board LED you can control. On the Uno and   Leonardo, it is attached to digital pin 13. If you're unsure what   pin the on-board LED is connected to on your Arduino model, check   the documentation […]

Read More →