feat(display): migrate to HD44780 character lcd
This commit is contained in:
+5
-5
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user