Display_Backend.h 377 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "Display.h"
  3. #define NOTIFY_DISPLAY_I2C_ADDR 0x3C
  4. class Display_Backend {
  5. public:
  6. virtual void hw_update() = 0;
  7. virtual void set_pixel(uint16_t x, uint16_t y) = 0;
  8. virtual void clear_pixel(uint16_t x, uint16_t y) = 0;
  9. virtual void clear_screen() = 0;
  10. protected:
  11. virtual ~Display_Backend() {}
  12. virtual bool hw_init() = 0;
  13. };