Skip to content

Instantly share code, notes, and snippets.

@Jasmien
Jasmien / pot_with_leds.ino
Created February 9, 2014 00:50
If you turn the potentiometer up, more LEDs light up and vice versa.
// assign names and values
int green1 = 2;
int green2 = 3;
int green3 = 4;
int yellow1 = 5;
int yellow2 = 6;
int yellow3 = 7;
int red1 = 8;
int red2 = 9;
int red3 = 10;