Skip to content

cdollar393/esp_lcd_sh1107

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP LCD SH1107

Component Registry

Implementation of the SH1107 LCD controller with esp_lcd component.

LCD controller Communication interface Component name Link to datasheet
SH1107 I2C esp_lcd_sh1107 WIKI

Add to project

Packages from this repository are uploaded to Espressif's component service. You can add them to your project via idf.py add-dependancy, e.g.

    idf.py add-dependency esp_lcd_sh1107==1.0.0

Alternatively, you can create idf_component.yml. More is in Espressif's documentation.

Usage

For detailed usage, please go to LCD documentation.

Example initialization

esp_lcd_panel_io_handle_t io_handle = NULL;
esp_lcd_panel_io_i2c_config_t io_config = ESP_LCD_IO_I2C_SH1107_CONFIG();
ESP_ERROR_CHECK(esp_lcd_new_panel_io_i2c((esp_lcd_i2c_bus_handle_t)config->i2c.port, &io_config, &io_handle));

esp_lcd_panel_handle_t lcd_panel_handle = NULL;
esp_lcd_panel_dev_config_t panel_config = {
    .bits_per_pixel = 1,
    .reset_gpio_num = BOARD_DISP_I2C_RST,
};
ESP_ERROR_CHECK(esp_lcd_new_panel_sh1107(io_handle, &panel_config, &lcd_panel_handle));

ESP_ERROR_CHECK(esp_lcd_panel_reset(lcd_panel_handle));
ESP_ERROR_CHECK(esp_lcd_panel_init(lcd_panel_handle));
ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(lcd_panel_handle, true));

Rotation and LVGL usage

For using this LCD display with LVGL or when you want to use rotation (only with LVGL), please use esp_lvgl_port component.

About

Clone of the SH1107 OLED LCD driver component for ESP32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published