DEV Community

Discussion on: Share a code snippet in any programming language and describe what's going on

Collapse
 
gajananpp profile image
Gajanan Patil

Custom characters on 16x2 LCD Display using LiquidCrystal library of Arduino

byte heart[8] = {
0b00000,
0b01010,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000,
0b00000
};

lcd.createChar(0, heart);
lcd.setCursor(0, 1);
lcd.write(byte(0));
Enter fullscreen mode Exit fullscreen mode

displays on lcd as
LCD Character

used to spend whole day creating different custom chars and animations