



Level 5 — Complete the code
Starter Code
The code is available on a Google Drive
Upload it to your Arduino and test it
Arduino function reference
pinMode(pin, mode);
Tells the Arduino that a pin is an INPUT_PULLUP or an OUTPUT.
delay(time);
Tells the Arduino to wait for the time.
digitalRead(pin);
Finds out if an input is HIGH or LOW.
digitalWrite(pin, value);
Makes an output either HIGH or LOW.
analogRead(pin);
Finds out the value of an analogue input.
analogWrite(pin, value);
Sets an analogue output to the value you choose.
Other code
Add 1 to a variable
value = value + 1;
Subtract 1 from a variable
value = value - 1;
Set a variable
value = another_value;