#include "liquid_crystal.h"
const char* hello = "Hello World!";
const char* wokwi = " I \x03 Wokwi ";
const uint8_t rs = 5, en = 18, d4 = 19, d5 = 21, d6 = 22, d7 = 23;
const uint8_t heart[8] = {
0b00000,
0b01010,
0b11111,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000,
};
void app_main()
{
// initialize the library by associating any needed LCD interface pin
// with the pin number it is connected to
liquid_crystal(rs, en, d4, d5, d6, d7);
// set up the LCD's number of columns and rows:
lcd_begin(16, 2);
lcd_set_cursor(2, 0);
for (int i = 0; i < 11; i++)
{
lcd_write(hello[i]);
}
lcd_create_char(3, heart);
lcd_set_cursor(2, 1);
for (int i = 0; i < 16; i++)
{
lcd_write(wokwi[i]);
}
}