Make sure that the baud rate you’ve set in your call to
Serial.begin
matches the
baud rate in the serial monitor.
Exercises
• Add new commands to the sample program. The command 3 could make
the LED blink for a while.
• Try to make the commands more readable; that is, instead of 1, use the
command “on”, and instead of 2, use “off”.
If you have problems solving these exercises, read Chapter 4, Building a Morse
Code Generator Library, on page 61.
Chapter 2. Creating Bigger Projects with the Arduino • 36
report erratum • discuss
www.it-ebooks.info