Blink

This example shows the simplest thing you can do with an Arduino to see physical output: it blinks an LED. Hardware Required Arduino Board LED Resistor, anything between 220 ohm to 1K ohm Circuit To build the circuit, connect one end of the resistor to Arduino pin 13. Connect the long leg of the LED (the positive leg, called the anode) to the other end of the resistor. Connect the short leg of the LED (the ...

Read more

Blink Without Delay using Arduino

Sometimes you need to do two things at once. For example you might want to blink an LED (or some other time-sensitive function) while reading a button press or other input. In this case, you can't use delay(), or you'd stop everything else the program while the LED blinked. The program might miss the button press if it happens during the delay(). This sketch demonstrates how to blink the LED without using d ...

Read more

Blink LED using Arduino

This example shows the simplest thing you can do with an Arduino to see physical output: it blinks an LED. Circuit To build the circuit, attach a 220-ohm resistor to pin 13. Then attach the long leg of an LED (the positive leg, called the anode) to the resistor. Attach the short leg (the negative leg, called the cathode) to ground. Then plug your Arduino board into your computer, start the Arduino program, ...

Read more

Arduino Esplora Blink Code

This sketch blinks the Esplora's RGB LED. It goes through all three primary colors (red, green, blue), then it combines them for secondary colors(yellow, cyan, magenta), then it turns on all the colors to create white. For best results, cover the LED with a piece of white paper to see the colors blend. Circuit Only your Arduino Esplora is needed for this example. Connect the Esplora to your computer with a ...

Read more
Scroll to top