2019-09-02 11:41:24 +00:00
|
|
|
#ifndef MIDI2CV_DRIVERS_DISPLAY_H
|
|
|
|
#define MIDI2CV_DRIVERS_DISPLAY_H
|
|
|
|
|
|
|
|
#include "stmlib/stmlib.h"
|
2019-09-19 15:55:48 +00:00
|
|
|
#include <stm32f37x_conf.h>
|
2020-02-23 10:15:27 +00:00
|
|
|
#include <U8g2lib.h>
|
2019-09-02 11:41:24 +00:00
|
|
|
|
2019-10-14 21:51:38 +00:00
|
|
|
#define DISPLAY_WIDTH 128
|
|
|
|
#define DISPLAY_HEIGHT 64
|
|
|
|
|
2019-09-02 11:41:24 +00:00
|
|
|
class Display {
|
2019-09-19 15:55:48 +00:00
|
|
|
public:
|
|
|
|
Display() {}
|
2019-09-02 11:41:24 +00:00
|
|
|
~Display() {}
|
|
|
|
|
|
|
|
void Init();
|
2020-02-23 10:15:27 +00:00
|
|
|
U8G2* u8g2();
|
2019-09-19 15:55:48 +00:00
|
|
|
void Flush();
|
|
|
|
void Swap();
|
|
|
|
|
|
|
|
private:
|
2019-09-02 11:41:24 +00:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(Display);
|
2019-09-19 15:55:48 +00:00
|
|
|
void InitGLib();
|
2019-09-02 11:41:24 +00:00
|
|
|
};
|
2019-09-19 14:41:32 +00:00
|
|
|
extern Display display;
|
2019-09-02 11:41:24 +00:00
|
|
|
#endif
|