summaryrefslogtreecommitdiff
path: root/lib/oled/oled.h
blob: 4873285fc40181609504b13ce612d8dc8f11a309 (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 drawBitmap(const uint8_t* bitmap);
    void showAnimation(const uint8_t* animation[], int frames, int delayTime);
    void clear();

private:
    Adafruit_SSD1306 display;
};