// https://arduinogetstarted.com/faq/how-to-use-special-character-on-lcd
// https://randomnerdtutorials.com/guide-for-oled-display-with-arduino/
#include <LiquidCrystal.h>
LiquidCrystal lcd (4, 6, 10, 11, 12, 13);
// (RS, DN, D4, D5, D6, D7)
byte customChar[8] = {
0b00000,
0b01010,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000,
0b00000
};
byte sml[8] = {
0b00000,
0b00000,
0b01010,
0b00000,
0b10001,
0b01110,
0b00000,
0b00000
};
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.createChar(0, customChar);
lcd.createChar(1, sml);
lcd.setCursor(0, 0);
lcd.write((byte)0);
lcd.setCursor(1, 0);
lcd.print("Text");
//lcd.createChar(0, customChar); // create a new custom character
//lcd.write((byte)0); // print the custom char at (1, 1)
lcd.write((byte)0);
lcd.setCursor(0, 1);
lcd.write((byte)1);
delay(500);
}