Created
October 11, 2016 06:02
-
-
Save neosarchizo/37ddb0c96995864278e25c51c59e4d20 to your computer and use it in GitHub Desktop.
[자유학기제 - 아두이노] LED 밝기 조절하기
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 light = 0; | |
void setup() {} | |
void loop() { | |
analogWrite(9, light); | |
light = light + 1; | |
if(light > 255){ | |
light = 0; | |
} | |
delay(10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment