Created
March 2, 2017 14:07
-
-
Save michaels123/330270d6c24e3735110888b7ca420902 to your computer and use it in GitHub Desktop.
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
void setup() { | |
pinMode(3, OUTPUT); //Pin 3 als Output festlegen | |
pinMode(5, OUTPUT); //Pin 5 als Output festlegen | |
pinMode(6, OUTPUT); //Pin 6 als Output festlegen | |
} | |
void loop() { | |
for(int i = 0; i < 255; i++) | |
{ | |
analogWrite(3, i); | |
analogWrite(5, (255-i)); | |
delay(10); | |
} | |
delay(500); | |
analogWrite(3, 0); | |
analogWrite(5, 255); | |
delay(500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment