feat(display): migrate to HD44780 character lcd

This commit is contained in:
2026-04-26 03:11:07 +02:00
parent 48a1cd5ee6
commit 1a8047d5e0
5 changed files with 21 additions and 38 deletions
+5 -5
View File
@@ -1,16 +1,16 @@
#pragma once
#include <Arduino.h>
#include <U8g2lib.h>
#include <LiquidCrystal_I2C.h>
/*
* A helper class to facilitate drawing on the SSD1306 OLED display using the U8g2 library.
* A helper class to facilitate drawing on a HD44780 LCD display.
*/
class Display {
public:
Display();
Display(uint8_t addr = 0x27, uint8_t cols = 16, uint8_t rows = 2);
bool begin();
void begin();
void drawJoystick(double x, double y, bool pressed);
private:
U8G2_SSD1306_128X64_NONAME_F_HW_I2C oled;
LiquidCrystal_I2C lcd;
};