forked from xiaozhi/xiaozhi-esp32
move all hardware init to boards
This commit is contained in:
24
main/display/ssd1306_display.h
Normal file
24
main/display/ssd1306_display.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user