Lab Code Flashcards

1
Q

Serial.print (“temperature”)

A

output to serial monitor without enter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Serial.printIn (temperature)

A

output to serial monitor with enter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

constant int colorR = 255;
constant int colorG = 0;
constant int colorB = 0;

A

3 variable to store the color intensity for red, green and blue respectively.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

lcd.begin (16, 2);

A

Initiate LCD display into 2 rows and 16 column

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

lcd.setRGB (colorR, colorG, colorB);

A

Setting the backlight color according to the value store in the variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

lcd.print(“Hello World”)

A

“lcd.print” is the standard function to output to the display.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

lcd.setCursor(0,1);

A

“lcd.setCursor” is to locate the cursor to the position with “lcd.print” can out put the text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Serial.begin(9600)

A

To initiate connection to serial monitor window. 9600 is the baud rate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you read digital signals?

A

There will be no “D” in front but just pin number.
Eg. digitalRead(5, HIGH)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to you write digital signals?

A

There will be no “D” in front but just pin number.
Eg. digitalWrite(5, HIGH)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you read analog signals?

A

There will be an “A” in front
Eg. analogRead(A0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly