This is just another simple app to control an RGB led, this time the app is a color picker Schematic Arduino Code [codesyntax lang=”cpp”] const int RED_LED = 9; const int GREEN_LED = 10; const int BLUE_LED = 11; void …
Tag:
LED
-
-
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 PWM. The input read from the analog pins will be …
-
Connect an LED to digital pin 3 Code [c] void setup() { pinMode(3, OUTPUT); } void loop() { for (int a = 0 ; a < 256 ; a++) { analogWrite(3, a); delay(5); } for (int a = 255 ; …
-
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 D13, rather than take the easy option we will attach …