Stap 3: De code
Nu als je weet hoe te voegen en uploaden van de code die ik ben gewoon gaan om deze te voegen hier:Door Jonas P. Hyatt
Dankzij Tom Igoe en Dave1324
int ledDelay = 50;
int redPin = 9;
int bluePin = 10;
VOID Setup {}
pinMode (redPin, OUTPUT);
pinMode (bluePin, OUTPUT);
}
void loop {}
digitalWrite (bluePin, laag);
delay(ledDelay);
digitalWrite (redPin, hoge);
delay(ledDelay);
digitalWrite (redPin, laag);
delay(ledDelay);
digitalWrite (redPin, hoge);
delay(ledDelay);
digitalWrite (redPin, laag);
delay(ledDelay);
digitalWrite (redPin, hoge);
delay(ledDelay);
noTone(11);
Toon (6, 440, 200);
digitalWrite (redPin, laag);
delay(ledDelay);
digitalWrite (bluePin, hoge);
delay(ledDelay);
digitalWrite (bluePin, laag);
delay(ledDelay);
digitalWrite (bluePin, hoge);
delay(ledDelay);
digitalWrite (bluePin, laag);
delay(ledDelay);
digitalWrite (bluePin, hoge);
noTone(6);
Toon (7, 494, 500);
noTone(7);
Toon (11, 523, 300);
}