From 4bd0a060d100c7fb9ad657c939b954b081b62016 Mon Sep 17 00:00:00 2001 From: EnricoGuccii Date: Tue, 23 Dec 2025 16:59:20 +0100 Subject: eee --- firmware/lib/oled/oled.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 firmware/lib/oled/oled.h (limited to 'firmware/lib/oled/oled.h') diff --git a/firmware/lib/oled/oled.h b/firmware/lib/oled/oled.h new file mode 100644 index 0000000..2d5ff14 --- /dev/null +++ b/firmware/lib/oled/oled.h @@ -0,0 +1,18 @@ +#pragma once +#include +#include "settings.h" + + +class OLED { +public: + OLED(); + + void init(); + void showMessage(const String& msg,int size = 1 ,int x = 0, int y = 0); + void drawFullBitmap(const uint8_t* bitmap); + void showAnimation(const byte* frames, int frameCount, int frameWidth, int frameHeight, int frameDelay); + void clear(); + +private: + Adafruit_SSD1306 display; +}; -- cgit v1.2.3