Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int yellowLED = 13;
- void setup() {
- // put your setup code here, to run once:
- pinMode(yellowLED, OUTPUT);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- for(int i = 0; i < 255; i++) {
- analogWrite(yellowLED, i);
- delay(5);
- }
- for(int i = 255; i > 0; i--) {
- analogWrite(yellowLED, i);
- delay(5);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment