blob: 2d5ff14597feedf8b1a163873254e00758617cae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
};
|