Stap 1: Dat is alles
WAT JE NODIG HEBT:
KEYES RGB MODULE
ARDUINO
PC
------------------------------------------------------------------------------------------------------------------------------------------------------
SLUIT HET DE NEGATIEVE PIN AAN DE GND, DE RODE PIN AAN PIN 13, DE GROENE PIN AAN PIN 12, DE BLAUWE PIN NAAR DE 13 PIN... EN DAAR BEN JE
------------------------------------------------------------------------------------------------------------------------------------------------------
HIER IS DE CODE:
int red = 12;int green = 13;int blue = 11;void setup() {pinMode(red, OUTPUT);pinMode(green, OUTPUT);pinMode(blue, OUTPUT);}void loop() {digitalWrite(red, HIGH);delay(500);digitalWrite(red, LOW);delay(500);digitalWrite(green, HIGH);delay(500);digitalWrite(green, LOW);delay(500);digitalWrite(blue, HIGH);delay(500);digitalWrite(blue, LOW);delay(500);}
------------------------------------------