Stap 4: Leidde Pin 13 en seriële Monitor.
int outPin = 13;void setup(){ pinMode(outPin,OUTPUT); Serial.begin(9600); Serial.println("Enter 1 or 0"); } void loop(){ if(Serial.available()>0) { char ch = Serial.read(); if (ch == '1') { digitalWrite(outPin,1); } else if (ch == '0') { digitalWrite(outPin,LOW); } }this code will make it so when you go into the serial monitor and type 1 the led on pin 13 will light up then when you type 0 the led will be off.