Bird
0
0
Arduinoprogramming~10 mins

Custom characters on LCD 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 create a custom character on the LCD.

Arduino
byte smiley[8] = {0x00, 0x0A, 0x00, 0x00, 0x11, 0x0E, 0x00, [1];
Drag options to blanks, or click blank then click option'
A0x00
B0x1F
C0x10
D0x05
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-zero value for the last byte can distort the character shape.
2fill in blank
medium

Complete the code to load the custom character into the LCD memory.

Arduino
lcd.createChar([1], smiley);
Drag options to blanks, or click blank then click option'
A1
B0
C8
D16
Attempts:
3 left
💡 Hint
Common Mistakes
Using an index outside 0-7 causes errors or overwrites memory.
3fill in blank
hard

Fix the error in the code to display the custom character on the LCD.

Arduino
lcd.setCursor(0, 0);
lcd.write([1]);
Drag options to blanks, or click blank then click option'
A0
B1
C'0'
Dsmiley
Attempts:
3 left
💡 Hint
Common Mistakes
Passing the array name instead of the index.
Using character literals like '0' instead of numeric index.
4fill in blank
hard

Fill both blanks to define and display a heart custom character on the LCD.

Arduino
byte heart[8] = [1];
lcd.createChar(1, [2]);
Drag options to blanks, or click blank then click option'
A{0x00, 0x0A, 0x1F, 0x1F, 0x1F, 0x0E, 0x04, 0x00}
Bsmiley
Cheart
D{0x00, 0x04, 0x0E, 0x1F, 0x1F, 0x0A, 0x00, 0x00}
Attempts:
3 left
💡 Hint
Common Mistakes
Passing the wrong array or variable name to createChar.
Using incorrect byte patterns for the heart shape.
5fill in blank
hard

Fill all three blanks to create, store, and display a smiley face custom character at position (0,1).

Arduino
byte smiley[8] = [1];
lcd.createChar([2], smiley);
lcd.setCursor(0, [3]);
lcd.write([2]);
Drag options to blanks, or click blank then click option'
A{0x00, 0x0A, 0x00, 0x00, 0x11, 0x0E, 0x00, 0x00}
B0
C1
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the index for createChar and write.
Incorrect cursor position for displaying the character.