This file contains hidden or 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
#define BUILTIN_LED 13 | |
#define DELAY_TIME_IN_MILLISECONDS 1000 | |
void setup() { | |
pinMode(BUILTIN_LED, OUTPUT); | |
digitalWrite(BUILTIN_LED, LOW); | |
} | |
void loop() { | |
turnLedOn(); | |
delay(DELAY_TIME_IN_MILLISECONDS); | |
turnLedOff(); |
This file contains hidden or 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
#define LED 5 | |
#define POT A7 | |
int in_brightness; | |
int out_brightness; | |
void setup() { | |
in_brightness = analogRead(POT); | |
out_brightness = 0; |