From d3b283c69e9cf5ac6fe18c25be77a9b0488b9454 Mon Sep 17 00:00:00 2001 From: EnricoGuccii Date: Fri, 29 May 2026 23:34:00 +0200 Subject: new file structure, and buzzer removed --- lib/oled/oled.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/oled/oled.h (limited to 'lib/oled/oled.h') diff --git a/lib/oled/oled.h b/lib/oled/oled.h new file mode 100644 index 0000000..2d5ff14 --- /dev/null +++ b/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