Skip to content

Commit 2fa6959

Browse files
committed
fix(lcd): load vendor config from bus
1 parent 0e8efec commit 2fa6959

14 files changed

+34
-4
lines changed

src/lcd/EK9716B.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bool ESP_PanelLcd_EK9716B::init(void)
6464
ESP_PANEL_CHECK_ERR_RET(gpio_config(&gpio_conf), false, "`Config RST gpio failed");
6565
}
6666

67-
/* Load RGB configurations from bus to vendor configurations */
67+
/* Load configurations from bus to vendor configurations */
6868
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
6969

7070
/* Create panel handle */

src/lcd/GC9503.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bool ESP_PanelLcd_GC9503::init(void)
4242
{
4343
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4444

45-
/* Load RGB configurations from bus to vendor configurations */
45+
/* Load configurations from bus to vendor configurations */
4646
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
4747

4848
/* Create panel handle */

src/lcd/GC9A01.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ bool ESP_PanelLcd_GC9A01::init(void)
3939
{
4040
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4141

42+
/* Load configurations from bus to vendor configurations */
43+
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
44+
4245
ESP_PANEL_CHECK_ERR_RET(esp_lcd_new_panel_gc9a01(bus->getPanelIO_Handle(), &panel_config, &handle), false, "Create panel failed");
4346

4447
return true;

src/lcd/GC9B71.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ bool ESP_PanelLcd_GC9B71::init(void)
4343
{
4444
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4545

46+
/* Load configurations from bus to vendor configurations */
47+
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
48+
4649
ESP_PANEL_CHECK_ERR_RET(esp_lcd_new_panel_gc9b71(bus->getPanelIO_Handle(), &panel_config, &handle), false, "Create panel failed");
4750

4851
return true;

src/lcd/ILI9341.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ bool ESP_PanelLcd_ILI9341::init(void)
3939
{
4040
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4141

42+
/* Load configurations from bus to vendor configurations */
43+
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
44+
4245
ESP_PANEL_CHECK_ERR_RET(esp_lcd_new_panel_ili9341(bus->getPanelIO_Handle(), &panel_config, &handle), false, "Create panel failed");
4346

4447
return true;

src/lcd/NV3022B.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ bool ESP_PanelLcd_NV3022B::init(void)
3939
{
4040
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4141

42+
/* Load configurations from bus to vendor configurations */
43+
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
44+
4245
ESP_PANEL_CHECK_ERR_RET(esp_lcd_new_panel_nv3022b(bus->getPanelIO_Handle(), &panel_config, &handle), false, "Create panel failed");
4346

4447
return true;

src/lcd/SH8601.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ bool ESP_PanelLcd_SH8601::init(void)
4343
{
4444
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4545

46+
/* Load configurations from bus to vendor configurations */
47+
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
48+
4649
ESP_PANEL_CHECK_ERR_RET(esp_lcd_new_panel_sh8601(bus->getPanelIO_Handle(), &panel_config, &handle), false, "Create panel failed");
4750

4851
return true;

src/lcd/SPD2010.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ bool ESP_PanelLcd_SPD2010::init(void)
4141
{
4242
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4343

44+
/* Load configurations from bus to vendor configurations */
45+
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
46+
4447
ESP_PANEL_CHECK_ERR_RET(esp_lcd_new_panel_spd2010(bus->getPanelIO_Handle(), &panel_config, &handle), false, "Create panel failed");
4548

4649
return true;

src/lcd/ST7262.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bool ESP_PanelLcd_ST7262::init(void)
6464
ESP_PANEL_CHECK_ERR_RET(gpio_config(&gpio_conf), false, "`Config RST gpio failed");
6565
}
6666

67-
/* Load RGB configurations from bus to vendor configurations */
67+
/* Load configurations from bus to vendor configurations */
6868
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
6969

7070
/* Create panel handle */

src/lcd/ST7701.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bool ESP_PanelLcd_ST7701::init(void)
4242
{
4343
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4444

45-
/* Load RGB configurations from bus to vendor configurations */
45+
/* Load configurations from bus to vendor configurations */
4646
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
4747

4848
/* Create panel handle */

src/lcd/ST7789.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ bool ESP_PanelLcd_ST7789::init(void)
3939
{
4040
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4141

42+
/* Load configurations from bus to vendor configurations */
43+
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
44+
4245
ESP_PANEL_CHECK_ERR_RET(esp_lcd_new_panel_st7789(bus->getPanelIO_Handle(), &panel_config, &handle), false, "Create panel failed");
4346

4447
return true;

src/lcd/ST77916.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ bool ESP_PanelLcd_ST77916::init(void)
3939
{
4040
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4141

42+
/* Load configurations from bus to vendor configurations */
43+
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
44+
4245
ESP_PANEL_CHECK_ERR_RET(esp_lcd_new_panel_st77916(bus->getPanelIO_Handle(), &panel_config, &handle), false, "Create panel failed");
4346

4447
return true;

src/lcd/ST77922.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ bool ESP_PanelLcd_ST77922::init(void)
4141
{
4242
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4343

44+
/* Load configurations from bus to vendor configurations */
45+
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
46+
4447
ESP_PANEL_CHECK_ERR_RET(esp_lcd_new_panel_st77922(bus->getPanelIO_Handle(), &panel_config, &handle), false, "Create panel failed");
4548

4649
return true;

src/lcd/ST7796.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ bool ESP_PanelLcd_ST7796::init(void)
3939
{
4040
ESP_PANEL_CHECK_NULL_RET(bus, false, "Invalid bus");
4141

42+
/* Load configurations from bus to vendor configurations */
43+
ESP_PANEL_CHECK_FALSE_RET(loadVendorConfigFromBus(), false, "Load vendor config from bus failed");
44+
4245
ESP_PANEL_CHECK_ERR_RET(esp_lcd_new_panel_st7796(bus->getPanelIO_Handle(), &panel_config, &handle), false, "Create panel failed");
4346

4447
return true;

0 commit comments

Comments
 (0)