forked from xiaozhi/xiaozhi-esp32
25 lines
587 B
C++
25 lines
587 B
C++
#ifndef SSD1306_DISPLAY_H
|
|
#define SSD1306_DISPLAY_H
|
|
|
|
#include "display.h"
|
|
|
|
#include <esp_lcd_panel_io.h>
|
|
#include <esp_lcd_panel_ops.h>
|
|
|
|
class Ssd1306Display : public Display {
|
|
private:
|
|
esp_lcd_panel_io_handle_t panel_io_ = nullptr;
|
|
esp_lcd_panel_handle_t panel_ = nullptr;
|
|
bool mirror_x_ = false;
|
|
bool mirror_y_ = false;
|
|
|
|
virtual void Lock() override;
|
|
virtual void Unlock() override;
|
|
|
|
public:
|
|
Ssd1306Display(void* i2c_master_handle, int width, int height, bool mirror_x = false, bool mirror_y = false);
|
|
~Ssd1306Display();
|
|
};
|
|
|
|
#endif // SSD1306_DISPLAY_H
|