Skip to content

Commit

Permalink
Merge pull request #12 from Y1hsiaochunnn/master
Browse files Browse the repository at this point in the history
Update screen drivers
  • Loading branch information
WaveshareCloud authored Feb 28, 2025
2 parents 45eee25 + 426abec commit 922afaf
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions display/lcd/esp_lcd_dsi/esp_lcd_dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ esp_err_t esp_lcd_new_panel_dsi(const esp_lcd_panel_io_handle_t io, const esp_lc
.master.clk_speed = 100000,
};

i2c_bus_handle_t i2c0_bus = i2c_bus_create(I2C_NUM_0, &conf);
i2c_bus_handle_t i2c0_bus = i2c_bus_create(I2C_NUM_1, &conf);
i2c_bus_device_handle_t i2c0_device1 = i2c_bus_device_create(i2c0_bus, 0x45, 0);

uint8_t data = 0x01;
Expand All @@ -112,7 +112,7 @@ esp_err_t esp_lcd_new_panel_dsi(const esp_lcd_panel_io_handle_t io, const esp_lc
i2c_bus_write_bytes(i2c0_device1, 0xad, 1, &data);

i2c_bus_device_delete(&i2c0_device1);
i2c_bus_delete(&i2c0_bus);
// i2c_bus_delete(&i2c0_bus);

vTaskDelay(pdMS_TO_TICKS(1000));

Expand Down
4 changes: 2 additions & 2 deletions display/lcd/esp_lcd_dsi/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.0.1"
version: "1.0.2"
targets:
- esp32p4
description: "Waveshare DSI display driver, compatible with a variety of DSI displays"
Expand All @@ -8,6 +8,6 @@ dependencies:
idf:
version: '>=5.3'
cmake_utilities: "0.*"
espressif/i2c_bus: "^1.0.0"
espressif/i2c_bus: "^1.3.0"

license: "MIT"
6 changes: 3 additions & 3 deletions display/lcd/esp_lcd_ili9881c/esp_lcd_ili9881c.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ esp_err_t esp_lcd_new_panel_ili9881c(const esp_lcd_panel_io_handle_t io, const e
.master.clk_speed = 100000,
};

i2c_bus_handle_t i2c0_bus = i2c_bus_create(I2C_NUM_0, &conf);
i2c_bus_handle_t i2c0_bus = i2c_bus_create(I2C_NUM_1, &conf);
i2c_bus_device_handle_t i2c0_device1 = i2c_bus_device_create(i2c0_bus, 0x45, 0);

uint8_t data = 0x11;
Expand All @@ -140,12 +140,12 @@ esp_err_t esp_lcd_new_panel_ili9881c(const esp_lcd_panel_io_handle_t io, const e
i2c_bus_write_bytes(i2c0_device1, 0x95, 1, &data);
data = 0x00;
i2c_bus_write_bytes(i2c0_device1, 0x96, 1, &data);
vTaskDelay(pdMS_TO_TICKS(300));
vTaskDelay(pdMS_TO_TICKS(100));
data = 0xFF;
i2c_bus_write_bytes(i2c0_device1, 0x96, 1, &data);

i2c_bus_device_delete(&i2c0_device1);
i2c_bus_delete(&i2c0_bus);
// i2c_bus_delete(&i2c0_bus);

vTaskDelay(pdMS_TO_TICKS(1000));

Expand Down
4 changes: 2 additions & 2 deletions display/lcd/esp_lcd_ili9881c/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.0.0"
version: "1.0.1"
targets:
- esp32p4
description: "Waveshare 7-DSI-TOUCH-A driver"
Expand All @@ -8,6 +8,6 @@ dependencies:
idf:
version: '>=5.3'
cmake_utilities: "0.*"
espressif/i2c_bus: "^1.0.0"
espressif/i2c_bus: "^1.3.0"

license: "MIT"
6 changes: 3 additions & 3 deletions display/lcd/esp_lcd_jd9365_10_1/esp_lcd_jd9365_10_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ esp_err_t esp_lcd_new_panel_jd9365(const esp_lcd_panel_io_handle_t io, const esp
.master.clk_speed = 100000,
};

i2c_bus_handle_t i2c0_bus = i2c_bus_create(I2C_NUM_0, &conf);
i2c_bus_handle_t i2c0_bus = i2c_bus_create(I2C_NUM_1, &conf);
i2c_bus_device_handle_t i2c0_device1 = i2c_bus_device_create(i2c0_bus, 0x45, 0);

uint8_t data = 0x11;
Expand All @@ -139,12 +139,12 @@ esp_err_t esp_lcd_new_panel_jd9365(const esp_lcd_panel_io_handle_t io, const esp
i2c_bus_write_bytes(i2c0_device1, 0x95, 1, &data);
data = 0x00;
i2c_bus_write_bytes(i2c0_device1, 0x96, 1, &data);
vTaskDelay(pdMS_TO_TICKS(300));
vTaskDelay(pdMS_TO_TICKS(100));
data = 0xFF;
i2c_bus_write_bytes(i2c0_device1, 0x96, 1, &data);

i2c_bus_device_delete(&i2c0_device1);
i2c_bus_delete(&i2c0_bus);
// i2c_bus_delete(&i2c0_bus);

vTaskDelay(pdMS_TO_TICKS(1000));

Expand Down
4 changes: 2 additions & 2 deletions display/lcd/esp_lcd_jd9365_10_1/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ dependencies:
version: 0.*
idf:
version: '>=5.3'
espressif/i2c_bus: "^1.0.0"
espressif/i2c_bus: "^1.3.0"
description: "ESP LCD FOR Waveshare 10.1inch DISPLAY JD9365"
issues: "https://github.com/waveshareteam/Waveshare-ESP32-components/issues"

license: "MIT"
targets:
- esp32p4
url: "https://github.com/waveshareteam/Waveshare-ESP32-components/tree/master/display/lcd/esp_lcd_jd9365_10_1"
version: "1.0.2"
version: "1.0.3"
6 changes: 3 additions & 3 deletions display/lcd/esp_lcd_jd9365_8/esp_lcd_jd9365_8.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ esp_err_t esp_lcd_new_panel_jd9365(const esp_lcd_panel_io_handle_t io, const esp
.master.clk_speed = 100000,
};

i2c_bus_handle_t i2c0_bus = i2c_bus_create(I2C_NUM_0, &conf);
i2c_bus_handle_t i2c0_bus = i2c_bus_create(I2C_NUM_1, &conf);
i2c_bus_device_handle_t i2c0_device1 = i2c_bus_device_create(i2c0_bus, 0x45, 0);

uint8_t data = 0x11;
Expand All @@ -139,12 +139,12 @@ esp_err_t esp_lcd_new_panel_jd9365(const esp_lcd_panel_io_handle_t io, const esp
i2c_bus_write_bytes(i2c0_device1, 0x95, 1, &data);
data = 0x00;
i2c_bus_write_bytes(i2c0_device1, 0x96, 1, &data);
vTaskDelay(pdMS_TO_TICKS(300));
vTaskDelay(pdMS_TO_TICKS(100));
data = 0xFF;
i2c_bus_write_bytes(i2c0_device1, 0x96, 1, &data);

i2c_bus_device_delete(&i2c0_device1);
i2c_bus_delete(&i2c0_bus);
// i2c_bus_delete(&i2c0_bus);

vTaskDelay(pdMS_TO_TICKS(1000));

Expand Down
4 changes: 2 additions & 2 deletions display/lcd/esp_lcd_jd9365_8/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ dependencies:
version: 0.*
idf:
version: '>=5.3'
espressif/i2c_bus: "^1.0.0"
espressif/i2c_bus: "^1.3.0"
description: "ESP LCD FOR Waveshare 8 inch DISPLAY JD9365"
issues: "https://github.com/waveshareteam/Waveshare-ESP32-components/issues"

license: "MIT"
targets:
- esp32p4
url: "https://github.com/waveshareteam/Waveshare-ESP32-components/tree/master/display/lcd/esp_lcd_jd9365_8"
version: "1.0.2"
version: "1.0.3"

0 comments on commit 922afaf

Please sign in to comment.