summaryrefslogtreecommitdiff
path: root/lib/oled/oled.h
blob: b6fe7fae54dbf4bbd80010a5cffbe45555e7013f (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;
};