diff options
| author | EnricoGuccii <partyka.003@gmail.com> | 2025-05-11 21:42:04 +0200 |
|---|---|---|
| committer | EnricoGuccii <partyka.003@gmail.com> | 2025-05-11 21:42:04 +0200 |
| commit | 4f96161a387c3bc32ee084f14095e50ab9716b5e (patch) | |
| tree | c7b0e76e5b5a5d412bed4ce0f458d197f2a07ae7 /lib/oled/oled.h | |
| parent | f3a5b90d090fda687adad44e37200fa446fcf7e0 (diff) | |
add oled
Diffstat (limited to 'lib/oled/oled.h')
| -rw-r--r-- | lib/oled/oled.h | 32 |
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; +}; |