32 lines
670 B
Arduino
Raw Permalink Normal View History

2025-10-29 18:54:16 +02:00
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
const uint8_t sh[] = { 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x1F };
const uint8_t a[] = { 0x0, 0x0, 0x0, 0x1E, 0x11, 0x1E, 0x11, 0x1E };
const uint8_t e[] = { 0x0, 0x0, 0x0, 0x1F, 0x10, 0x1F, 0x10, 0x1F };
const uint8_t d[] = { 0x0, 0x0, 0x0, 0xE, 0xA, 0xA, 0x1F, 0x11 };
const char surname[] = {'S', 'h', 'w', 'e', 'd'};
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
lcd.init();
lcd.backlight();
lcd.createChar(0, sh);
lcd.createChar(1, a);
lcd.createChar(2, e);
lcd.createChar(3, d);
lcd.setCursor(0, 0);
lcd.write(0);
lcd.write(1);
lcd.write(2);
lcd.write(3);
}
void loop() {
}