17 lines
332 B
C++
17 lines
332 B
C++
#pragma once
|
|
#include <Arduino.h>
|
|
#include <U8g2lib.h>
|
|
|
|
/*
|
|
* A helper class to facilitate drawing on the SSD1306 OLED display using the U8g2 library.
|
|
*/
|
|
class Display {
|
|
public:
|
|
Display();
|
|
|
|
bool begin();
|
|
void drawJoystick(double x, double y, bool pressed);
|
|
private:
|
|
U8G2_SSD1306_128X64_NONAME_F_HW_I2C oled;
|
|
};
|