You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
470 B
20 lines
470 B
#pragma once |
|
|
|
#include "Display.h" |
|
|
|
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI |
|
#define NOTIFY_DISPLAY_I2C_BUS 2 |
|
#else |
|
#define NOTIFY_DISPLAY_I2C_BUS 1 |
|
#endif |
|
#define NOTIFY_DISPLAY_I2C_ADDR 0x3C |
|
|
|
class Display_Backend { |
|
|
|
public: |
|
virtual bool hw_init() = 0; |
|
virtual bool hw_update() = 0; |
|
virtual bool set_pixel(uint16_t x, uint16_t y) = 0; |
|
virtual bool clear_pixel(uint16_t x, uint16_t y) = 0; |
|
virtual bool clear_screen() = 0; |
|
};
|
|
|