2017-01-19 03:15:24 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Display.h"
|
|
|
|
|
2017-01-20 02:42:53 -04:00
|
|
|
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI
|
|
|
|
#define NOTIFY_DISPLAY_I2C_BUS 2
|
2017-01-19 03:15:24 -04:00
|
|
|
#else
|
2017-01-20 02:42:53 -04:00
|
|
|
#define NOTIFY_DISPLAY_I2C_BUS 1
|
2017-01-19 03:15:24 -04:00
|
|
|
#endif
|
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:
|
|
|
|
virtual bool hw_init() = 0;
|
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-01-19 03:15:24 -04:00
|
|
|
};
|