Untitled Flashcard Set

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

What does the function lcd.init() do?

Initializes communication with the LCD.

2
New cards

Which library is used to control the LCD?

LiquidCrystal_I2C.h

3
New cards

What is the role of the line #include ?

It is required for I2C communication.

4
New cards

What does "16x2" mean in regards to the LCD?

16 characters per row, 2 rows.

5
New cards

What is the purpose of lcd.backlight()?

Turns on the LCD screen light.

6
New cards

What is the function of the SDA pin in I2C communication?

Sends and receives data.

7
New cards

Which Arduino pins are used for I2C on an Uno?

SDA → A4, SCL → A5.

8
New cards

What does lcd.setCursor(0,0) do?

Moves the cursor to the first row, first column.

9
New cards

What does the line pinMode(7, INPUT_PULLUP); mean?

Pin 7 is input with an internal pull-up resistor.

10
New cards

When using INPUT_PULLUP, what is the button state when pressed?

LOW.

11
New cards

What value range does analogRead(A0) return for the potentiometer?

0–1023.

12
New cards

What happens in the line lcd.print(potValue);?

Prints the current potentiometer value.

13
New cards

Why does the code use lcd.print(" "); before printing the potentiometer value?

To overwrite old characters with spaces.

14
New cards

What happens if the LCD’s I2C address is wrong (e.g., 0x20 vs 0x27)?

The LCD will not respond.

15
New cards

What is the delay of delay(200) used for in the loop?

To stabilize readings and reduce flickering.

16
New cards

The cursor coordinates (c, r) in lcd.setCursor(c, r) start from:

(0,0).

17
New cards

Which function clears the LCD completely?

lcd.clear().

18
New cards

What is the advantage of I2C over parallel LCD wiring?

Uses fewer Arduino pins.

19
New cards

If you want to display "Arduino Rocks!" on the second row, first column, what command should you use?

lcd.setCursor(1,2); lcd.print("Arduino Rocks!");

20
New cards

In the example code, what does the LCD show when the button is pressed?

"1".