mirror of https://github.com/ArduPilot/ardupilot
23 lines
377 B
C++
23 lines
377 B
C++
#pragma once
|
|
|
|
#include "Display.h"
|
|
|
|
#define NOTIFY_DISPLAY_I2C_ADDR 0x3C
|
|
|
|
class Display_Backend {
|
|
|
|
public:
|
|
|
|
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;
|
|
|
|
protected:
|
|
|
|
virtual ~Display_Backend() {}
|
|
|
|
virtual bool hw_init() = 0;
|
|
|
|
};
|