RGB LEDs & Serial Monitor with Arduino – Pre-Test | Lesson 5


It stores data from the Arduino.
It displays multiple colors using red, green, and blue.
It measures temperature and humidity.

Pins 2, 3, and 4
Pins 11, 10, and 9
Pins A0, A1, A2

It turns on an LED.
It displays messages in the Serial Monitor.
It receives input from the user.

To blink the LED.
To wait for user input before continuing.
To stop the program from starting.

int
bool
String

Serial.begin()
Serial.print()
Serial.println()

digitalWrite() sets HIGH or LOW, analogWrite() controls brightness.
They both do the same thing.
analogWrite() turns the pin off.

Repeats code over and over.
Makes decisions based on conditions.
Stops the sketch immediately.

Runs once and then stops.
Waits until a condition is met before moving on.
It prints values to the Serial Monitor.

BOTH NL & CR
No Line Ending
Newline Only