Erstes Projekt
This commit is contained in:
commit
acdf6d198d
1 changed files with 14 additions and 0 deletions
14
Licht.ino
Normal file
14
Licht.ino
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
void setup() {
|
||||
pinMode(3,OUTPUT); // red
|
||||
pinMode(9,OUTPUT); // green
|
||||
pinMode(6,OUTPUT); // blue
|
||||
}
|
||||
|
||||
void loop() {
|
||||
for (int i=255; i <= 0; i++) {
|
||||
analogWrite(3,i);
|
||||
delay(20);
|
||||
analogWrite(9,(255-i));
|
||||
delay(20);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue