Stap 1: De Code van de Arduino
Hier is de code om te uploaden naar je arduino:
int led1 = 13; LED pluggued in 13 pin op de arduino
int status;
VOID Setup {}
Serial.begin(9600); initialiseren van seriële communicatie met 9600 bits per seconde
}
void loop {}
Als (Serial.available() > 0) {}
staat = Serial.read();
}
anders als (staat == 'a') {}
Toon (led1, 264, 500);
}
}