2017-01-19 03:15:24 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Display.h"
|
|
|
|
|
2017-01-20 02:42:53 -04:00
|
|
|
#define NOTIFY_DISPLAY_I2C_ADDR 0x3C
|
2017-01-19 03:15:24 -04:00
|
|
|
|
|
|
|
class Display_Backend {
|
|
|
|
|
|
|
|
public:
|
2017-03-10 21:16:55 -04:00
|
|
|
|
2017-01-21 00:59:00 -04:00
|
|
|
virtual void hw_update() = 0;
|
|
|
|
virtual void set_pixel(uint16_t x, uint16_t y) = 0;
|
|
|
|
virtual void clear_pixel(uint16_t x, uint16_t y) = 0;
|
|
|
|
virtual void clear_screen() = 0;
|
2017-03-10 21:16:55 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
virtual ~Display_Backend() {}
|
|
|
|
|
|
|
|
virtual bool hw_init() = 0;
|
|
|
|
|
2017-01-19 03:15:24 -04:00
|
|
|
};
|