Bird
0
0
Arduinoprogramming~10 mins

LCD cursor positioning in Arduino - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the cursor to the first column and first row on the LCD.

Arduino
lcd.setCursor([1], 0);
Drag options to blanks, or click blank then click option'
A0
B1
C2
D3
Attempts:
3 left
💡 Hint
Common Mistakes
Using 1 instead of 0 for the first column.
Confusing row and column order.
2fill in blank
medium

Complete the code to move the cursor to the third column on the second row.

Arduino
lcd.setCursor([1], 1);
Drag options to blanks, or click blank then click option'
A2
B3
C1
D4
Attempts:
3 left
💡 Hint
Common Mistakes
Using 3 instead of 2 for the third column.
Mixing up row and column numbers.
3fill in blank
hard

Fix the error in the code to correctly position the cursor at column 4, row 0.

Arduino
lcd.setCursor(4, [1]);
Drag options to blanks, or click blank then click option'
A2
B0
C1
D3
Attempts:
3 left
💡 Hint
Common Mistakes
Using 1 instead of 0 for the first row.
Confusing row and column arguments.
4fill in blank
hard

Fill both blanks to set the cursor to the last column on the last row of a 16x2 LCD.

Arduino
lcd.setCursor([1], [2]);
Drag options to blanks, or click blank then click option'
A15
B16
C1
D2
Attempts:
3 left
💡 Hint
Common Mistakes
Using 16 for the last column (out of range).
Using 2 for the last row (out of range).
5fill in blank
hard

Fill all three blanks to set the cursor to column 0, row 1, and then print 'Hello'.

Arduino
lcd.setCursor([1], [2]);
lcd.print([3]);
Drag options to blanks, or click blank then click option'
A0
B1
C"Hello"
D"World"
Attempts:
3 left
💡 Hint
Common Mistakes
Using 1 for the column instead of 0.
Using 0 for the row instead of 1.
Forgetting quotes around the string.