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>
|
2019-09-19 14:41:32 +00:00
|
|
|
#include <u8g2.h>
|
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();
|
2019-09-19 15:55:48 +00:00
|
|
|
u8g2_t* u8g2();
|
|
|
|
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
|