Capstone quiz 1 Flashcards
Codes from pushbutton to serial monitor
1
Q
Read logic state of pin
A
digitalRead()
2
Q
If()
A
If you want to do or not do command
3
Q
Else()
A
When if command is false
4
Q
Else if()
A
When first command is false and second command is true
5
Q
Sets baud rate and begin serial port
A
Serial.begin()
6
Q
Serial.print()
A
When you want to display some words in serial monitor
7
Q
Serial.printIn
A
Similar to print but the next word is on the next line
8
Q
Serial.available()
A
Checks whether the user enetered a data
9
Q
A continous loop until it becomes false
A
While()
10
Q
Looks for the next valid integer
A
Serial.parseInt()
11
Q
Float
A
Composed of numbers that are non integers
12
Q
Used to store text
A
String/.. Serial.readString()