This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |