Skip to content

Instantly share code, notes, and snippets.

@KPiccone
KPiccone / gist:68784d3f3ee387f94553b33c68e982d9
Created February 18, 2026 05:12
Light gradient with meter as switch
int ledPins[] = {2, 5, 8, 11, 12};
int potPin = A0;
int potValue = 0;
int numLeds = 0;
void setup() {
for (int i = 0; i < 5; i++) {
pinMode(ledPins[i], OUTPUT);
}
Serial.begin(9600);