SunFounder 3in1 Kit
• 3: Ending selection, select the ending characters appended to data sent to Arduino. Selection includes:
– No line Ending just sends what you type;
– Newline is \n and will sends an ASCII new line code after what you type
– Carriage Return is \r, which will send an ASCII carriage return character after what you type;
– Both NL & CR is \r\n which will send both a carriage return and a new line character after what you
type.
• 4: Select communication speed between Arduino board and PC. This value MUST be the same as the value set
in Serial.begin().
• 5: Clear all text on the output console.
• 6: A textbox to send characters to the Arduino board, see 5.12 Serial Read for a tutorial.
4.3.2 3.1 Reading Button Value
In the previous projects, we used the output function, in this chapter we will use the input function to input read the
button value.
Required Components
In this project, we need the following components.
It’s definitely convenient to buy a whole kit, here’s the link:
Name ITEMS IN THIS KIT LINK
3 in 1 Starter Kit 380+
You can also buy them separately from the links below.
COMPONENT INTRODUCTION PURCHASE LINK
Arduino Uno R4 Minima -
Breadboard
Jumper Wires
Resistor
Button
Schematic
4.3. 3. Digital Read 107