ardupilot/libraries/AP_Notify/Display_Backend.h

21 lines
470 B
C
Raw Normal View History

#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 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;
};