Skip to content

Instantly share code, notes, and snippets.

@neosarchizo
Created October 11, 2016 06:02
Show Gist options
  • Save neosarchizo/37ddb0c96995864278e25c51c59e4d20 to your computer and use it in GitHub Desktop.
Save neosarchizo/37ddb0c96995864278e25c51c59e4d20 to your computer and use it in GitHub Desktop.
[자유학기제 - 아두이노] LED 밝기 조절하기
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