Skip to content

Commit 307f552

Browse files
committed
Merge branch 'fix/update_lcd_ili9881' into 'master'
fix(lcd & docs): update ili9881c and README Closes #120 See merge request ae_group/ESP32_Display_Panel!3
2 parents 6df9145 + deb60b2 commit 307f552

File tree

7 files changed

+38
-38
lines changed

7 files changed

+38
-38
lines changed

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
workflow_dispatch:
55
pull_request:
66
types: [opened, reopened, synchronize]
7-
push:
8-
branches:
9-
- master
107

118
jobs:
129
pre-commit:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Arduino Lint](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/arduino_lint.yml/badge.svg)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/arduino_lint.yml) [![pre-commit](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/pre-commit.yml) [![Version Consistency](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/check_lib_versions.yml/badge.svg)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/check_lib_versions.yml)
1+
[![Arduino Lint](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/arduino_lint.yml/badge.svg)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/arduino_lint.yml) [![Version Consistency](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/check_lib_versions.yml/badge.svg)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/check_lib_versions.yml)
22

33
**Latest Arduino Library Version**: [![GitHub Release](https://img.shields.io/github/v/release/esp-arduino-libs/ESP32_Display_Panel)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/releases)
44

@@ -50,9 +50,9 @@ Below is the list of [supported LCD controllers](docs/LCD_Controllers.md):
5050

5151
| **Manufacturer** | **Model** |
5252
| ---------------- | --------- |
53-
| Fitipower | EK9716B |
53+
| Fitipower | EK9716B, EK79007 |
5454
| GalaxyCore | GC9A01, GC9B71, GC9503 |
55-
| Ilitek | ILI9341 |
55+
| Ilitek | ILI9341, ILI9881C |
5656
| NewVision | NV3022B |
5757
| Sitronix | ST7262, ST7701, ST7789, ST7796, ST77916, ST77922 |
5858

README_CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Arduino Lint](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/arduino_lint.yml/badge.svg)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/arduino_lint.yml) [![pre-commit](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/pre-commit.yml) [![Version Consistency](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/check_lib_versions.yml/badge.svg)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/check_lib_versions.yml)
1+
[![Arduino Lint](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/arduino_lint.yml/badge.svg)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/arduino_lint.yml) [![Version Consistency](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/check_lib_versions.yml/badge.svg)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/actions/workflows/check_lib_versions.yml)
22

33
**最新 Arduino 库版本**: [![GitHub Release](https://img.shields.io/github/v/release/esp-arduino-libs/ESP32_Display_Panel)](https://github.com/esp-arduino-libs/ESP32_Display_Panel/releases)
44

@@ -50,9 +50,9 @@ ESP32_Display_Panel 的功能框图如下所示,主要包含以下特性:
5050

5151
| **厂商** | **型号** |
5252
| -------- | -------- |
53-
| Fitipower | EK9716B |
53+
| Fitipower | EK9716B, EK79007 |
5454
| GalaxyCore | GC9A01, GC9B71, GC9503 |
55-
| Ilitek | ILI9341 |
55+
| Ilitek | ILI9341, ILI9881C |
5656
| NewVision | NV3022B |
5757
| Sitronix | ST7262, ST7701, ST7789, ST7796, ST77916, ST77922 |
5858

docs/LCD_Controllers.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
# LCD Controllers
22

3-
| **Name** | **Version** |
4-
| -------------------------------------------------------------------------------- | ----------- |
5-
| [GC9A01](https://components.espressif.com/components/espressif/esp_lcd_gc9a01) | 2.0.0 |
6-
| [GC9B71](https://components.espressif.com/components/espressif/esp_lcd_gc9b71) | 1.0.1 |
7-
| [GC9503](https://components.espressif.com/components/espressif/esp_lcd_gc9503) | 3.0.1 |
8-
| [ILI9341](https://components.espressif.com/components/espressif/esp_lcd_ili9341) | 2.0.0 |
9-
| [NV3022B](https://components.espressif.com/components/espressif/esp_lcd_nv3022b) | 0.0.1 |
10-
| [SH8601](https://components.espressif.com/components/espressif/esp_lcd_sh8601) | 1.0.0 |
11-
| [SPD2010](https://components.espressif.com/components/espressif/esp_lcd_spd2010) | 1.0.1 |
12-
| ST7262 | - |
13-
| [ST7701](https://components.espressif.com/components/espressif/esp_lcd_st7701) | 1.0.1 |
14-
| ST7789 | - |
15-
| [ST7796](https://components.espressif.com/components/espressif/esp_lcd_st7796) | 1.2.1 |
16-
| [ST77916](https://components.espressif.com/components/espressif/esp_lcd_st77916) | 0.0.2 |
17-
| [ST77922](https://components.espressif.com/components/espressif/esp_lcd_st77922) | 0.0.2 |
18-
| EK9716B | - |
3+
| **Name** | **Version** |
4+
| ---------------------------------------------------------------------------------- | ----------- |
5+
| EK9716B | - |
6+
| [EK79007](https://components.espressif.com/components/espressif/esp_lcd_ek79007) | 1.0.0 |
7+
| [GC9A01](https://components.espressif.com/components/espressif/esp_lcd_gc9a01) | 2.0.0 |
8+
| [GC9B71](https://components.espressif.com/components/espressif/esp_lcd_gc9b71) | 1.0.1 |
9+
| [GC9503](https://components.espressif.com/components/espressif/esp_lcd_gc9503) | 3.0.1 |
10+
| [ILI9341](https://components.espressif.com/components/espressif/esp_lcd_ili9341) | 2.0.0 |
11+
| [ILI9881C](https://components.espressif.com/components/espressif/esp_lcd_ili9881c) | 1.0.0 |
12+
| [NV3022B](https://components.espressif.com/components/espressif/esp_lcd_nv3022b) | 0.0.1 |
13+
| [SH8601](https://components.espressif.com/components/espressif/esp_lcd_sh8601) | 1.0.0 |
14+
| [SPD2010](https://components.espressif.com/components/espressif/esp_lcd_spd2010) | 1.0.1 |
15+
| ST7262 | - |
16+
| [ST7701](https://components.espressif.com/components/espressif/esp_lcd_st7701) | 1.0.1 |
17+
| ST7789 | - |
18+
| [ST7796](https://components.espressif.com/components/espressif/esp_lcd_st7796) | 1.2.1 |
19+
| [ST77916](https://components.espressif.com/components/espressif/esp_lcd_st77916) | 0.0.2 |
20+
| [ST77922](https://components.espressif.com/components/espressif/esp_lcd_st77922) | 0.0.2 |

idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: "0.2.0"
2-
description: ESP32_Display_Panel is an library designed for ESP SoCs to drive display panels and facilitate rapid GUI development.
2+
description: ESP32_Display_Panel is a library designed for ESP SoCs to drive display panels and facilitate rapid GUI development.
33
url: https://github.com/esp-arduino-libs/ESP32_Display_Panel
44
repository: https://github.com/esp-arduino-libs/ESP32_Display_Panel.git
55
issues: https://github.com/esp-arduino-libs/ESP32_Display_Panel/issues

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name=ESP32_Display_Panel
22
version=0.2.0
33
author=espressif
44
maintainer=espressif
5-
sentence=ESP32_Display_Panel is an library designed for ESP SoCs to drive display panels and facilitate rapid GUI development.
6-
paragraph=Currently supported boards:ESP32-C3-LCDkit,ESP32-S3-BOX,ESP32-S3-BOX-3,ESP32-S3-BOX-3B,ESP32-S3-BOX-3(beta),ESP32-S3-BOX-Lite,ESP32-S3-EYE,ESP32-S3-Korvo-2,ESP32-S3-LCD-EV-Board,ESP32-S3-LCD-EV-Board-2,ESP32-S3-USB-OTG,ESP32-P4-Function-EV-Board,M5STACK-M5CORE2,M5STACK-M5DIAL,M5STACK-M5CORES3,ESP32-4848S040C_I_Y_3,ESP32-S3-Touch-LCD-4.3,ESP32-S3-Touch-LCD-1.85,ESP32-S3-Touch-LCD-2.1. Currently supported devices: Bus,LCD,Touch,Backlight,IO expander. Currently supported Bus: I2C,SPI,QSPI,3-wire SPI + RGB. Currently supported LCD controllers: EK9716B,GC9A01,GC9B71,GC9503,ILI9341,NV3022B,ST7262,ST7701,ST7789,ST7796,ST77916,ST77922. Currently supported Touch controllers: CST816S,FT5x06,GT1151,GT911,ST7123,TT21100,XPT2046.
5+
sentence=ESP32_Display_Panel is a library designed for ESP SoCs to drive display panels and facilitate rapid GUI development.
6+
paragraph=Currently supported boards:ESP32-C3-LCDkit,ESP32-S3-BOX,ESP32-S3-BOX-3,ESP32-S3-BOX-3B,ESP32-S3-BOX-3(beta),ESP32-S3-BOX-Lite,ESP32-S3-EYE,ESP32-S3-Korvo-2,ESP32-S3-LCD-EV-Board,ESP32-S3-LCD-EV-Board-2,ESP32-S3-USB-OTG,ESP32-P4-Function-EV-Board,M5STACK-M5CORE2,M5STACK-M5DIAL,M5STACK-M5CORES3,ESP32-4848S040C_I_Y_3,ESP32-S3-Touch-LCD-4.3,ESP32-S3-Touch-LCD-1.85,ESP32-S3-Touch-LCD-2.1. Currently supported devices: Bus,LCD,Touch,Backlight,IO expander. Currently supported Bus: I2C,SPI,QSPI,3-wire SPI + RGB,MIPI-DSI. Currently supported LCD controllers: EK9716B,EK79007,GC9A01,GC9B71,GC9503,ILI9341,ILI9881C,NV3022B,ST7262,ST7701,ST7789,ST7796,ST77916,ST77922. Currently supported Touch controllers: CST816S,FT5x06,GT1151,GT911,ST7123,TT21100,XPT2046.
77
category=Other
88
architectures=esp32
99
url=https://github.com/esp-arduino-libs/ESP32_Display_Panel

src/lcd/base/esp_lcd_ili9881c.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,6 @@ esp_err_t esp_lcd_new_panel_ili9881c(const esp_lcd_panel_io_handle_t io, const e
118118
break;
119119
}
120120

121-
// The ID register is on the CMD_Page 1
122-
uint8_t ID1, ID2, ID3;
123-
esp_lcd_panel_io_tx_param(io, ILI9881C_CMD_CNDBKxSEL, (uint8_t[]) {
124-
ILI9881C_CMD_BKxSEL_BYTE0, ILI9881C_CMD_BKxSEL_BYTE1, ILI9881C_CMD_BKxSEL_BYTE2_PAGE1
125-
}, 3);
126-
esp_lcd_panel_io_rx_param(io, 0x00, &ID1, 1);
127-
esp_lcd_panel_io_rx_param(io, 0x01, &ID2, 1);
128-
esp_lcd_panel_io_rx_param(io, 0x02, &ID3, 1);
129-
ESP_LOGI(TAG, "ID1: 0x%x, ID2: 0x%x, ID3: 0x%x", ID1, ID2, ID3);
130-
131121
ili9881c->io = io;
132122
ili9881c->init_cmds = vendor_config->init_cmds;
133123
ili9881c->init_cmds_size = vendor_config->init_cmds_size;
@@ -389,6 +379,17 @@ static esp_err_t panel_ili9881c_init(esp_lcd_panel_t *panel)
389379
{
390380
ili9881c_panel_t *ili9881c = (ili9881c_panel_t *)panel->user_data;
391381
esp_lcd_panel_io_handle_t io = ili9881c->io;
382+
383+
// The ID register is on the CMD_Page 1
384+
uint8_t ID1, ID2, ID3;
385+
esp_lcd_panel_io_tx_param(io, ILI9881C_CMD_CNDBKxSEL, (uint8_t[]) {
386+
ILI9881C_CMD_BKxSEL_BYTE0, ILI9881C_CMD_BKxSEL_BYTE1, ILI9881C_CMD_BKxSEL_BYTE2_PAGE1
387+
}, 3);
388+
esp_lcd_panel_io_rx_param(io, 0x00, &ID1, 1);
389+
esp_lcd_panel_io_rx_param(io, 0x01, &ID2, 1);
390+
esp_lcd_panel_io_rx_param(io, 0x02, &ID3, 1);
391+
ESP_LOGI(TAG, "ID1: 0x%x, ID2: 0x%x, ID3: 0x%x", ID1, ID2, ID3);
392+
392393
const esp_lcd_panel_vendor_init_cmd_t *init_cmds = NULL;
393394
uint16_t init_cmds_size = 0;
394395
uint8_t lane_command = ILI9881C_DSI_2_LANE;

0 commit comments

Comments
 (0)