LED
This is just another simple app to control an RGB led, this time the app is a color picker Schematic Arduino Code [codesyntax.
In this example we connect an LDR to analog 0 and depending on the value read in we then vary the brightness of an LED connected to Pin 9 using.
Connect an LED to digital pin 3 Code [c] void setup() { pinMode(3, OUTPUT); } void loop() { for (int a = 0 ; a < 256 ; a++) {.
The ability to flash an LED is the most basic 'hello world' type of program you can write and run on your arduino. Most Arduino's have an LED attached to.