Skip to content

Instantly share code, notes, and snippets.

int led = 7
byte brightness = 20
int detect = 9
int bright_max = 255
int bright_min = 20
const CLOSED = LOW;
const OPEN = HIGH;
pinMode(led, OUTPUT);