Skip to content

SH1107 (128x128) screen offset (BSP-684) #583

@mutatrum

Description

@mutatrum

Board

ESP32-S3

Hardware Description

  • ESP32-S3-WROOM-1
  • SH1107 128x128 display (link)

All latest versions:

  • espressif/esp_lcd_sh1107 (1.1.0)
  • espressif/esp_lvgl_port (2.6.0)
  • lvgl/lvgl (9.3.0)
  • idf (5.4.1)

IDE Name

vscode

Operating System

Ubuntu 22.04

Description

The display shows an offset, exactly as with olikraus/u8g2#501, about a quarter of the screen to the right and wrapped around.

However, unlike that issue, setting esp_lcd_panel_set_gap to 96,0 as suggested causes screen corruption. I've tested with a lot of gap values, but I can't seem to get the screen aligned.

Sketch

  • i2c_oled example
  • Update dependencies to above.
  • Set resolution to 128x128 in i2c_oled_example_main.c L43:44:
#define EXAMPLE_LCD_H_RES              128
#define EXAMPLE_LCD_V_RES              128
  • Adjust lvgl_demo_ui L21:23 to show a border:
    lv_obj_set_width(label, lv_display_get_physical_horizontal_resolution(disp));
    lv_obj_set_height(label, lv_display_get_physical_vertical_resolution(disp));
    lv_obj_set_style_border_width(label, 1, LV_PART_MAIN);
    lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);

For the photo, I also disabled scrolling, this screen is really difficult to photograph, but it's clear the border is wrapped around:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions