2019-09-02 11:41:24 +00:00
|
|
|
#ifndef MIDI2CV_DRIVERS_DISPLAY_H
|
|
|
|
#define MIDI2CV_DRIVERS_DISPLAY_H
|
|
|
|
|
|
|
|
#include "stmlib/stmlib.h"
|
2020-02-25 20:48:04 +00:00
|
|
|
#include "base_display.h"
|
2020-02-23 10:15:27 +00:00
|
|
|
#include <U8g2lib.h>
|
2020-04-13 13:38:56 +00:00
|
|
|
#include <stm32f3xx_hal_conf.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
|
|
|
|
|
2020-02-25 20:48:04 +00:00
|
|
|
extern uint8_t u8x8_stm32_gpio_and_delay(U8X8_UNUSED u8x8_t* u8x8,
|
|
|
|
U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int,
|
|
|
|
U8X8_UNUSED void* arg_ptr);
|
|
|
|
|
|
|
|
extern uint8_t u8x8_byte_4wire_stm32_spi(u8x8_t* u8x8, uint8_t msg, uint8_t arg_int,
|
|
|
|
void* arg_ptr);
|
2019-09-02 11:41:24 +00:00
|
|
|
|
2020-02-25 20:48:04 +00:00
|
|
|
class Display : public BaseDisplay {
|
|
|
|
public:
|
|
|
|
Display() {}
|
|
|
|
~Display() {}
|
2019-09-19 15:55:48 +00:00
|
|
|
|
2020-02-25 20:48:04 +00:00
|
|
|
U8G2* u8g2();
|
|
|
|
void Flush();
|
|
|
|
void Swap();
|
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(Display);
|
|
|
|
void InitGLib();
|
2019-09-02 11:41:24 +00:00
|
|
|
};
|
2020-02-25 20:48:04 +00:00
|
|
|
|
2019-09-02 11:41:24 +00:00
|
|
|
#endif
|