klips/esp/cpp/07_lcd-panel/main/ssd1306.cpp

14 lines
389 B
C++
Raw Normal View History

2025-02-15 10:11:49 -05:00
#include "ssd1306.h"
// To use LV_COLOR_FORMAT_I1 we need an extra buffer to hold the converted data.
uint8_t SSD1306::oled_buffer_[LCD_H_RES * LCD_V_RES / 8];
SSD1306::SSD1306(esp_lcd_panel_ssd1306_config_t ssd_config,
int width,
int height) :
2025-02-15 14:04:08 -05:00
PanelDeviceInterface<esp_lcd_panel_ssd1306_config_t>(width, height)
2025-02-15 10:11:49 -05:00
{
vendor_config_ = ssd_config;
}