summaryrefslogtreecommitdiff
path: root/lib/oled/oled.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oled/oled.h')
-rw-r--r--lib/oled/oled.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/oled/oled.h b/lib/oled/oled.h
index 7cda336..4873285 100644
--- a/lib/oled/oled.h
+++ b/lib/oled/oled.h
@@ -1,18 +1,18 @@
-// #pragma once
-// #include <Adafruit_SSD1306.h>
-// #include "settings.h"
+#pragma once
+#include <Adafruit_SSD1306.h>
+#include "settings.h"
-// class OLED
-// {
-// public:
-// OLED();
-// void clear();
-// void print(const String &text, int x, int y);
-// void drawBox();
-// void setCursor(int x, int y);
-// void setTextSize(int size);
-// void showAnimation();
-// private:
-// Adafruit_SSD1306 display;
-// };
+class OLED {
+public:
+ OLED();
+
+ void init();
+ void showMessage(const String& msg,int size = 1 ,int x = 0, int y = 0);
+ void drawBitmap(const uint8_t* bitmap);
+ void showAnimation(const uint8_t* animation[], int frames, int delayTime);
+ void clear();
+
+private:
+ Adafruit_SSD1306 display;
+};