summaryrefslogtreecommitdiff
path: root/lib/oled/oled.h
diff options
context:
space:
mode:
authorEnricoGuccii <partyka.003@proton.me>2026-05-29 23:34:00 +0200
committerEnricoGuccii <partyka.003@proton.me>2026-05-29 23:34:00 +0200
commitd3b283c69e9cf5ac6fe18c25be77a9b0488b9454 (patch)
treeb39c0bda024eb053a0daab7b938be72a7d3e470e /lib/oled/oled.h
parent4bd0a060d100c7fb9ad657c939b954b081b62016 (diff)
new file structure, and buzzer removed
Diffstat (limited to 'lib/oled/oled.h')
-rw-r--r--lib/oled/oled.h18
1 files changed, 18 insertions, 0 deletions
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 <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;
+};