diff options
| author | EnricoGuccii <partyka.003@proton.me> | 2025-12-23 16:59:20 +0100 |
|---|---|---|
| committer | EnricoGuccii <partyka.003@proton.me> | 2025-12-23 16:59:20 +0100 |
| commit | 4bd0a060d100c7fb9ad657c939b954b081b62016 (patch) | |
| tree | b6d1c4f7504c2c8fd5b561c5200447ad6a58501a /firmware/lib/oled/oled.h | |
| parent | 967500ab8abefa6700941d589979176677ab0d72 (diff) | |
eee
Diffstat (limited to 'firmware/lib/oled/oled.h')
| -rw-r--r-- | firmware/lib/oled/oled.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <Adafruit_SSD1306.h>
+#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;
+};
|