first commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
**/squareline/backup/**
|
||||
**/squareline/autosave/**
|
||||
components/lvgl/**
|
||||
@@ -0,0 +1,15 @@
|
||||
# The following lines of boilerplate have to be in your project's
|
||||
# CMakeLists in this exact order for cmake to work correctly
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
|
||||
set(EXTRA_COMPONENT_DIRS
|
||||
../common_components
|
||||
)
|
||||
|
||||
add_compile_options(-Wno-format)
|
||||
add_compile_options(-Wno-ignored-qualifiers)
|
||||
add_compile_options(-Wno-attributes)
|
||||
add_compile_options(-Wno-unused-function)
|
||||
project(lvgl_demo_v9)
|
||||
@@ -0,0 +1,170 @@
|
||||
# LVGL Demo v9
|
||||
|
||||
[中文版本](./README_CN.md)
|
||||
|
||||
This example demonstrates how to port LVGL v9 and conduct performance testing using LVGL's built-in demos. The example utilizes the development board's MIPI-DSI interface. Based on this example, applications based on LVGL v9 can be developed.
|
||||
|
||||
|
||||
## Getting Started
|
||||
|
||||
|
||||
### Prerequisites
|
||||
|
||||
* An ESP32-P4-Function-EV-Board.
|
||||
* A 7-inch 1024 x 600 LCD screen powered by the [EK79007](https://dl.espressif.com/dl/schematics/display_driver_chip_EK79007AD_datasheet.pdf) IC, accompanied by a 32-pin FPC connection [adapter board](https://dl.espressif.com/dl/schematics/esp32-p4-function-ev-board-lcd-subboard-schematics.pdf) ([LCD Specifications](https://dl.espressif.com/dl/schematics/display_datasheet.pdf)).
|
||||
* A USB-C cable for power supply and programming.
|
||||
* Please refer to the following steps for the connection:
|
||||
* **Step 1**. According to the table below, connect the pins on the back of the screen adapter board to the corresponding pins on the development board.
|
||||
|
||||
| Screen Adapter Board | ESP32-P4-Function-EV-Board |
|
||||
| -------------------- | -------------------------- |
|
||||
| 5V (any one) | 5V (any one) |
|
||||
| GND (any one) | GND (any one) |
|
||||
| PWM | GPIO26 |
|
||||
| LCD_RST | GPIO27 |
|
||||
|
||||
* **Step 2**. Connect the FPC of LCD through the `MIPI_DSI` interface.
|
||||
* **Step 3**. Use a USB-C cable to connect the `USB-UART` port to a PC (Used for power supply and viewing serial output).
|
||||
* **Step 4**. Turn on the power switch of the board.
|
||||
|
||||
|
||||
### ESP-IDF Required
|
||||
|
||||
- This example supports ESP-IDF release/v5.3 and later branches. By default, it runs on ESP-IDF release/v5.3.
|
||||
- Please follow the [ESP-IDF Programming Guide](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html) to set up the development environment. **We highly recommend** you [Build Your First Project](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html#build-your-first-project) to get familiar with ESP-IDF and make sure the environment is set up correctly.
|
||||
|
||||
### Get the esp-dev-kits Repository
|
||||
|
||||
To start from the examples in esp-dev-kits, clone the repository to the local PC by running the following commands in the terminal:
|
||||
|
||||
```
|
||||
git clone --recursive https://github.com/espressif/esp-dev-kits.git
|
||||
```
|
||||
|
||||
|
||||
### Configuration
|
||||
|
||||
Run ``idf.py menuconfig`` and go to ``Board Support Package(ESP32-P4)``:
|
||||
|
||||
```
|
||||
menuconfig > Component config > Board Support Package
|
||||
```
|
||||
|
||||
|
||||
## How to Use the Example
|
||||
|
||||
|
||||
### Build and Flash the Example
|
||||
|
||||
Build the project and flash it to the board, then run monitor tool to view serial output (replace `PORT` with your board's serial port name):
|
||||
|
||||
```c
|
||||
idf.py -p PORT flash monitor
|
||||
```
|
||||
|
||||
To exit the serial monitor, type ``Ctrl-]``.
|
||||
|
||||
See the [ESP-IDF Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html) for full steps to configure and use ESP-IDF to build projects.
|
||||
|
||||
|
||||
### Example Output
|
||||
|
||||
- The complete log is as follows:
|
||||
|
||||
```c
|
||||
I (25) boot: ESP-IDF v5.4-dev-2167-gdef35b1ca7-dirty 2nd stage bootloader
|
||||
I (26) boot: compile time Sep 27 2024 17:00:31
|
||||
I (27) boot: Multicore bootloader
|
||||
I (32) boot: chip revision: v0.1
|
||||
I (35) qio_mode: Enabling default flash chip QIO
|
||||
I (40) boot.esp32p4: SPI Speed : 80MHz
|
||||
I (45) boot.esp32p4: SPI Mode : QIO
|
||||
I (49) boot.esp32p4: SPI Flash Size : 16MB
|
||||
I (54) boot: Enabling RNG early entropy source...
|
||||
I (60) boot: Partition Table:
|
||||
I (63) boot: ## Label Usage Type ST Offset Length
|
||||
I (70) boot: 0 nvs WiFi data 01 02 00009000 00006000
|
||||
I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000
|
||||
I (85) boot: 2 factory factory app 00 00 00010000 00800000
|
||||
I (93) boot: 3 storage Unknown data 01 82 00810000 00700000
|
||||
I (101) boot: End of partition table
|
||||
I (105) esp_image: segment 0: paddr=00010020 vaddr=48060020 size=bacdch (765148) map
|
||||
I (233) esp_image: segment 1: paddr=000cad04 vaddr=30100000 size=00020h ( 32) load
|
||||
I (235) esp_image: segment 2: paddr=000cad2c vaddr=30100020 size=0003ch ( 60) load
|
||||
I (240) esp_image: segment 3: paddr=000cad70 vaddr=4ff00000 size=052a8h ( 21160) load
|
||||
I (253) esp_image: segment 4: paddr=000d0020 vaddr=48000020 size=5b534h (374068) map
|
||||
I (315) esp_image: segment 5: paddr=0012b55c vaddr=4ff052a8 size=1caa0h (117408) load
|
||||
I (338) esp_image: segment 6: paddr=00148004 vaddr=4ff21d80 size=03074h ( 12404) load
|
||||
I (348) boot: Loaded app from partition at offset 0x10000
|
||||
I (349) boot: Disabling RNG early entropy source...
|
||||
I (360) hex_psram: vendor id : 0x0d (AP)
|
||||
I (361) hex_psram: Latency : 0x01 (Fixed)
|
||||
I (361) hex_psram: DriveStr. : 0x00 (25 Ohm)
|
||||
I (364) hex_psram: dev id : 0x03 (generation 4)
|
||||
I (370) hex_psram: density : 0x07 (256 Mbit)
|
||||
I (375) hex_psram: good-die : 0x06 (Pass)
|
||||
I (380) hex_psram: SRF : 0x02 (Slow Refresh)
|
||||
I (386) hex_psram: BurstType : 0x00 ( Wrap)
|
||||
I (391) hex_psram: BurstLen : 0x03 (2048 Byte)
|
||||
I (397) hex_psram: BitMode : 0x01 (X16 Mode)
|
||||
I (402) hex_psram: Readlatency : 0x04 (14 cycles@Fixed)
|
||||
I (408) hex_psram: DriveStrength: 0x00 (1/1)
|
||||
I (413) MSPI DQS: tuning success, best phase id is 2
|
||||
I (597) MSPI DQS: tuning success, best delayline id is 11
|
||||
I esp_psram: Found 32MB PSRAM device
|
||||
I esp_psram: Speed: 200MHz
|
||||
I (597) mmu_psram: flash_drom_paddr_start: 0x10000
|
||||
I (640) mmu_psram: flash_irom_paddr_start: 0xd0000
|
||||
I (659) hex_psram: psram CS IO is dedicated
|
||||
I (659) cpu_start: Multicore app
|
||||
I (1091) esp_psram: SPI SRAM memory test OK
|
||||
W (1101) clk: esp_perip_clk_init() has not been implemented yet
|
||||
I (1108) cpu_start: Pro cpu start user code
|
||||
I (1108) cpu_start: cpu freq: 360000000 Hz
|
||||
I (1108) app_init: Application information:
|
||||
I (1111) app_init: Project name: lvgl_demo_v9
|
||||
I (1117) app_init: App version: 7e53cd00-dirty
|
||||
I (1122) app_init: Compile time: Sep 27 2024 17:00:22
|
||||
I (1128) app_init: ELF file SHA256: 506da7290...
|
||||
I (1134) app_init: ESP-IDF: v5.4-dev-2167-gdef35b1ca7-dirty
|
||||
I (1141) efuse_init: Min chip rev: v0.1
|
||||
I (1146) efuse_init: Max chip rev: v0.99
|
||||
I (1151) efuse_init: Chip rev: v0.1
|
||||
I (1155) heap_init: Initializing. RAM available for dynamic allocation:
|
||||
I (1163) heap_init: At 4FF26B50 len 00014470 (81 KiB): RAM
|
||||
I (1169) heap_init: At 4FF3AFC0 len 00004BF0 (18 KiB): RAM
|
||||
I (1175) heap_init: At 4FF40000 len 00040000 (256 KiB): RAM
|
||||
I (1182) heap_init: At 50108080 len 00007F80 (31 KiB): RTCRAM
|
||||
I (1188) heap_init: At 3010005C len 00001FA4 (7 KiB): TCM
|
||||
I (1194) esp_psram: Adding pool of 30848K of PSRAM memory to heap allocator
|
||||
I (1202) spi_flash: detected chip: generic
|
||||
I (1206) spi_flash: flash io: qio
|
||||
W (1210) i2c: This driver is an old driver, please migrate your application code to adapt `driver/i2c_master.h`
|
||||
I (1221) main_task: Started on CPU0
|
||||
I (1244) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
|
||||
I (1244) main_task: Calling app_main()
|
||||
I (1246) LVGL: Starting LVGL task
|
||||
W (1250) ledc: GPIO 26 is not usable, maybe conflict with others
|
||||
I (1257) ESP32_P4_EV: MIPI DSI PHY Powered on
|
||||
I (1263) ESP32_P4_EV: Install MIPI DSI LCD control panel
|
||||
I (1268) ESP32_P4_EV: Install EK79007 LCD control panel
|
||||
I (1274) ek79007: version: 0.1.0
|
||||
I (1278) gpio: GPIO[27]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
|
||||
I (1444) ESP32_P4_EV: Display initialized
|
||||
E (1446) lcd_panel: esp_lcd_panel_swap_xy(50): swap_xy is not supported by this panel
|
||||
W (1446) GT911: Unable to initialize the I2C address
|
||||
I (1452) GT911: TouchPad_ID:0x39,0x31,0x31
|
||||
I (1456) GT911: TouchPad_Config_Version:89
|
||||
I (1461) ESP32_P4_EV: Setting LCD backlight: 100%
|
||||
I (1542) main_task: Returned from app_main()
|
||||
...
|
||||
```
|
||||
|
||||
## Technical Support and Feedback
|
||||
|
||||
Please use the following feedback channels:
|
||||
|
||||
- For technical queries, go to the [esp32.com](https://esp32.com/viewforum.php?f=22) forum.
|
||||
- For a feature request or bug report, create a [GitHub issue](https://github.com/espressif/esp-dev-kits/issues).
|
||||
|
||||
We will get back to you as soon as possible.
|
||||
@@ -0,0 +1,166 @@
|
||||
# LVGL Demo v9
|
||||
|
||||
[英文版本](./README.md)
|
||||
|
||||
该示例演示了如何移植 LVGL v9 并使用 LVGL 内置的示例进行性能测试。该示例使用了开发板的 MIPI-DSI 接口。基于此示例,可以开发基于 LVGL v9 的应用。
|
||||
|
||||
## 快速入门
|
||||
|
||||
### 准备工作
|
||||
|
||||
* 一块 ESP32-P4-Function-EV-Board 开发板。
|
||||
* 一块由 [EK79007](https://dl.espressif.com/dl/schematics/display_driver_chip_EK79007AD_datasheet.pdf) 芯片驱动的 7 英寸 1024 x 600 LCD 屏幕,配有 32 针 FPC 连接 [适配板](https://dl.espressif.com/dl/schematics/esp32-p4-function-ev-board-lcd-subboard-schematics.pdf) ([LCD 规格](https://dl.espressif.com/dl/schematics/display_datasheet.pdf))。
|
||||
* 用于供电和编程的 USB-C 电缆。
|
||||
* 请参考以下步骤进行连接:
|
||||
* **步骤 1**. 根据下表,将屏幕适配板背面的引脚连接到开发板的相应引脚。
|
||||
|
||||
| 屏幕适配板 | ESP32-P4-Function-EV-Board |
|
||||
| -------------------- | -------------------------- |
|
||||
| 5V(任意一个) | 5V(任意一个) |
|
||||
| GND(任意一个) | GND(任意一个) |
|
||||
| PWM | GPIO26 |
|
||||
| LCD_RST | GPIO27 |
|
||||
|
||||
* **步骤 2**. 通过 `MIPI_DSI` 接口连接 LCD 的 FPC。
|
||||
* **步骤 3**. 使用 USB-C 电缆将 `USB-UART` 端口连接到 PC(用于供电和查看串行输出)。
|
||||
* **步骤 4**. 打开开发板的电源开关。
|
||||
|
||||
### ESP-IDF 要求
|
||||
|
||||
- 此示例支持 ESP-IDF release/v5.3 及以上版本。默认情况下,在 ESP-IDF release/v5.3 上运行。
|
||||
- 请参照 [ESP-IDF 编程指南](https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/get-started/index.html) 设置开发环境。**强烈推荐** 通过 [编译第一个工程](https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/get-started/index.html#id8) 来熟悉 ESP-IDF,并确保环境设置正确。
|
||||
|
||||
### 获取 esp-dev-kits 仓库
|
||||
|
||||
在编译 esp-dev-kits 仓库中的示例之前,请先在终端中运行以下命令,将该仓库克隆到本地:
|
||||
|
||||
```
|
||||
git clone --recursive https://github.com/espressif/esp-dev-kits.git
|
||||
```
|
||||
|
||||
### 配置
|
||||
|
||||
|
||||
运行 ``idf.py menuconfig`` 并修改 ``Board Support Package(ESP32-P4)`` 配置:
|
||||
|
||||
```
|
||||
menuconfig > Component config > Board Support Package
|
||||
```
|
||||
|
||||
## 如何使用示例
|
||||
|
||||
|
||||
### 编译和烧录示例
|
||||
|
||||
编译项目并将其烧录到开发板上,运行监视工具可查看串行端口输出(将 `PORT` 替换为所用开发板的串行端口名):
|
||||
|
||||
```c
|
||||
idf.py -p PORT flash monitor
|
||||
```
|
||||
|
||||
输入``Ctrl-]`` 可退出串口监视。
|
||||
|
||||
有关配置和使用 ESP-IDF 来编译项目的完整步骤,请参阅 [ESP-IDF 快速入门指南](https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/get-started/index.html) 。
|
||||
|
||||
### 示例输出
|
||||
|
||||
- 完整日志如下所示:
|
||||
|
||||
```c
|
||||
I (25) boot: ESP-IDF v5.4-dev-2167-gdef35b1ca7-dirty 2nd stage bootloader
|
||||
I (26) boot: compile time Sep 27 2024 17:00:31
|
||||
I (27) boot: Multicore bootloader
|
||||
I (32) boot: chip revision: v0.1
|
||||
I (35) qio_mode: Enabling default flash chip QIO
|
||||
I (40) boot.esp32p4: SPI Speed : 80MHz
|
||||
I (45) boot.esp32p4: SPI Mode : QIO
|
||||
I (49) boot.esp32p4: SPI Flash Size : 16MB
|
||||
I (54) boot: Enabling RNG early entropy source...
|
||||
I (60) boot: Partition Table:
|
||||
I (63) boot: ## Label Usage Type ST Offset Length
|
||||
I (70) boot: 0 nvs WiFi data 01 02 00009000 00006000
|
||||
I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000
|
||||
I (85) boot: 2 factory factory app 00 00 00010000 00800000
|
||||
I (93) boot: 3 storage Unknown data 01 82 00810000 00700000
|
||||
I (101) boot: End of partition table
|
||||
I (105) esp_image: segment 0: paddr=00010020 vaddr=48060020 size=bacdch (765148) map
|
||||
I (233) esp_image: segment 1: paddr=000cad04 vaddr=30100000 size=00020h ( 32) load
|
||||
I (235) esp_image: segment 2: paddr=000cad2c vaddr=30100020 size=0003ch ( 60) load
|
||||
I (240) esp_image: segment 3: paddr=000cad70 vaddr=4ff00000 size=052a8h ( 21160) load
|
||||
I (253) esp_image: segment 4: paddr=000d0020 vaddr=48000020 size=5b534h (374068) map
|
||||
I (315) esp_image: segment 5: paddr=0012b55c vaddr=4ff052a8 size=1caa0h (117408) load
|
||||
I (338) esp_image: segment 6: paddr=00148004 vaddr=4ff21d80 size=03074h ( 12404) load
|
||||
I (348) boot: Loaded app from partition at offset 0x10000
|
||||
I (349) boot: Disabling RNG early entropy source...
|
||||
I (360) hex_psram: vendor id : 0x0d (AP)
|
||||
I (361) hex_psram: Latency : 0x01 (Fixed)
|
||||
I (361) hex_psram: DriveStr. : 0x00 (25 Ohm)
|
||||
I (364) hex_psram: dev id : 0x03 (generation 4)
|
||||
I (370) hex_psram: density : 0x07 (256 Mbit)
|
||||
I (375) hex_psram: good-die : 0x06 (Pass)
|
||||
I (380) hex_psram: SRF : 0x02 (Slow Refresh)
|
||||
I (386) hex_psram: BurstType : 0x00 ( Wrap)
|
||||
I (391) hex_psram: BurstLen : 0x03 (2048 Byte)
|
||||
I (397) hex_psram: BitMode : 0x01 (X16 Mode)
|
||||
I (402) hex_psram: Readlatency : 0x04 (14 cycles@Fixed)
|
||||
I (408) hex_psram: DriveStrength: 0x00 (1/1)
|
||||
I (413) MSPI DQS: tuning success, best phase id is 2
|
||||
I (597) MSPI DQS: tuning success, best delayline id is 11
|
||||
I esp_psram: Found 32MB PSRAM device
|
||||
I esp_psram: Speed: 200MHz
|
||||
I (597) mmu_psram: flash_drom_paddr_start: 0x10000
|
||||
I (640) mmu_psram: flash_irom_paddr_start: 0xd0000
|
||||
I (659) hex_psram: psram CS IO is dedicated
|
||||
I (659) cpu_start: Multicore app
|
||||
I (1091) esp_psram: SPI SRAM memory test OK
|
||||
W (1101) clk: esp_perip_clk_init() has not been implemented yet
|
||||
I (1108) cpu_start: Pro cpu start user code
|
||||
I (1108) cpu_start: cpu freq: 360000000 Hz
|
||||
I (1108) app_init: Application information:
|
||||
I (1111) app_init: Project name: lvgl_demo_v9
|
||||
I (1117) app_init: App version: 7e53cd00-dirty
|
||||
I (1122) app_init: Compile time: Sep 27 2024 17:00:22
|
||||
I (1128) app_init: ELF file SHA256: 506da7290...
|
||||
I (1134) app_init: ESP-IDF: v5.4-dev-2167-gdef35b1ca7-dirty
|
||||
I (1141) efuse_init: Min chip rev: v0.1
|
||||
I (1146) efuse_init: Max chip rev: v0.99
|
||||
I (1151) efuse_init: Chip rev: v0.1
|
||||
I (1155) heap_init: Initializing. RAM available for dynamic allocation:
|
||||
I (1163) heap_init: At 4FF26B50 len 00014470 (81 KiB): RAM
|
||||
I (1169) heap_init: At 4FF3AFC0 len 00004BF0 (18 KiB): RAM
|
||||
I (1175) heap_init: At 4FF40000 len 00040000 (256 KiB): RAM
|
||||
I (1182) heap_init: At 50108080 len 00007F80 (31 KiB): RTCRAM
|
||||
I (1188) heap_init: At 3010005C len 00001FA4 (7 KiB): TCM
|
||||
I (1194) esp_psram: Adding pool of 30848K of PSRAM memory to heap allocator
|
||||
I (1202) spi_flash: detected chip: generic
|
||||
I (1206) spi_flash: flash io: qio
|
||||
W (1210) i2c: This driver is an old driver, please migrate your application code to adapt `driver/i2c_master.h`
|
||||
I (1221) main_task: Started on CPU0
|
||||
I (1244) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
|
||||
I (1244) main_task: Calling app_main()
|
||||
I (1246) LVGL: Starting LVGL task
|
||||
W (1250) ledc: GPIO 26 is not usable, maybe conflict with others
|
||||
I (1257) ESP32_P4_EV: MIPI DSI PHY Powered on
|
||||
I (1263) ESP32_P4_EV: Install MIPI DSI LCD control panel
|
||||
I (1268) ESP32_P4_EV: Install EK79007 LCD control panel
|
||||
I (1274) ek79007: version: 0.1.0
|
||||
I (1278) gpio: GPIO[27]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
|
||||
I (1444) ESP32_P4_EV: Display initialized
|
||||
E (1446) lcd_panel: esp_lcd_panel_swap_xy(50): swap_xy is not supported by this panel
|
||||
W (1446) GT911: Unable to initialize the I2C address
|
||||
I (1452) GT911: TouchPad_ID:0x39,0x31,0x31
|
||||
I (1456) GT911: TouchPad_Config_Version:89
|
||||
I (1461) ESP32_P4_EV: Setting LCD backlight: 100%
|
||||
I (1542) main_task: Returned from app_main()
|
||||
...
|
||||
```
|
||||
|
||||
## 技术支持与反馈
|
||||
|
||||
请通过以下渠道进行反馈:
|
||||
|
||||
- 有关技术问题,请访问 [esp32.com](https://esp32.com/viewforum.php?f=22) 论坛。
|
||||
- 有关功能请求或错误报告,请创建新的 [GitHub 问题](https://github.com/espressif/esp-dev-kits/issues)。
|
||||
|
||||
|
||||
我们会尽快回复。
|
||||
@@ -0,0 +1,239 @@
|
||||
dependencies:
|
||||
chmorgan/esp-audio-player:
|
||||
component_hash: c8ac1998e9af863bc41b57e592f88d1a5791a0f891485122336ddabbf7a65033
|
||||
dependencies:
|
||||
- name: chmorgan/esp-libhelix-mp3
|
||||
registry_url: https://components.espressif.com
|
||||
require: private
|
||||
version: '>=1.0.0,<2.0.0'
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=5.0'
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
version: 1.0.7
|
||||
chmorgan/esp-file-iterator:
|
||||
component_hash: 327091394b9ef5c2cd395a960ab70ae64479e0a8831cbd9925e38895fad93719
|
||||
dependencies:
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=4.1.0'
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
version: 1.0.0
|
||||
chmorgan/esp-libhelix-mp3:
|
||||
component_hash: cbb76089dc2c5749f7b470e2e70aedc44c9da519e04eb9a67d4c7ec275229e53
|
||||
dependencies:
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=4.1.0'
|
||||
source:
|
||||
registry_url: https://components.espressif.com
|
||||
type: service
|
||||
version: 1.0.3
|
||||
espressif/cmake_utilities:
|
||||
component_hash: 351350613ceafba240b761b4ea991e0f231ac7a9f59a9ee901f751bddc0bb18f
|
||||
dependencies:
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=4.1'
|
||||
source:
|
||||
registry_url: https://components.espressif.com
|
||||
type: service
|
||||
version: 0.5.3
|
||||
espressif/esp32_p4_function_ev_board:
|
||||
dependencies:
|
||||
- name: espressif/esp_codec_dev
|
||||
public: true
|
||||
version: 1.2.*
|
||||
- name: espressif/esp_lcd_ek79007
|
||||
version: 1.*
|
||||
- name: espressif/esp_lcd_ili9881c
|
||||
version: 1.*
|
||||
- name: espressif/esp_lcd_touch_gt911
|
||||
version: ^1
|
||||
- name: waveshare/esp_lcd_jd9365_10_1
|
||||
version: ^1.0.3
|
||||
- name: espressif/esp_lvgl_port
|
||||
public: true
|
||||
version: ^2
|
||||
- name: idf
|
||||
version: '>=5.3'
|
||||
- name: lvgl/lvgl
|
||||
version: '>=8,<10'
|
||||
source:
|
||||
path: /home/jczn/esp/JC-ESP32P4-M3-DEV/common_components/espressif__esp32_p4_function_ev_board
|
||||
type: local
|
||||
targets:
|
||||
- esp32p4
|
||||
version: 4.1.1
|
||||
espressif/esp_codec_dev:
|
||||
component_hash: 014948481bda426cd46714f297fe1891711246c62bea288863a8cc8cf13ef1f0
|
||||
dependencies:
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=4.0'
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
version: 1.2.0
|
||||
espressif/esp_h264:
|
||||
component_hash: 7599170f185871bfde69aa0213dfc7f12d45e7dedfd85247be08d6decd34e476
|
||||
dependencies:
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=4.4'
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
targets:
|
||||
- esp32s3
|
||||
- esp32p4
|
||||
version: 1.1.2
|
||||
espressif/esp_lcd_ek79007:
|
||||
component_hash: 07c1afab7e9fd4dd2fd06ff9245e65327c5bbd5485efec199496e19a9304d47b
|
||||
dependencies:
|
||||
- name: espressif/cmake_utilities
|
||||
registry_url: https://components.espressif.com
|
||||
require: private
|
||||
version: 0.*
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=5.3'
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
targets:
|
||||
- esp32p4
|
||||
version: 1.0.2
|
||||
espressif/esp_lcd_ili9881c:
|
||||
component_hash: f4f374226b62baf13f735864e8fae58e17c537df34d598e059f6caad4761ef65
|
||||
dependencies:
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=5.3'
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
targets:
|
||||
- esp32p4
|
||||
version: 1.0.1
|
||||
espressif/esp_lcd_st7701:
|
||||
component_hash: 39cea941e1e0e6c47408395d79834c04eac2e308309432af36d94e035b9239d5
|
||||
dependencies:
|
||||
- name: espressif/cmake_utilities
|
||||
registry_url: https://components.espressif.com
|
||||
require: private
|
||||
version: 0.*
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>5.0.4,!=5.1.1'
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
targets:
|
||||
- esp32s3
|
||||
- esp32p4
|
||||
version: 1.1.3
|
||||
espressif/esp_lcd_touch:
|
||||
component_hash: 779b4ba2464a3ae85681e4b860caa5fdc35801458c23f3039ee761bae7f442a4
|
||||
dependencies:
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=4.4.2'
|
||||
source:
|
||||
registry_url: https://components.espressif.com
|
||||
type: service
|
||||
version: 1.1.2
|
||||
espressif/esp_lcd_touch_gt911:
|
||||
component_hash: acc1c184358aa29ef72506f618c9c76a8cc2bf12af38a2bff3d44d84f3a08857
|
||||
dependencies:
|
||||
- name: espressif/esp_lcd_touch
|
||||
registry_url: https://components.espressif.com
|
||||
require: public
|
||||
version: ^1.1.0
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=4.4.2'
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
version: 1.1.3
|
||||
espressif/esp_lvgl_port:
|
||||
component_hash: e720c95cf0667554a204591bb5fade4655fb2990465557041200fa44b5bc7556
|
||||
dependencies:
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=4.4'
|
||||
- name: lvgl/lvgl
|
||||
registry_url: https://components.espressif.com
|
||||
require: public
|
||||
version: '>=8,<10'
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
version: 2.6.0
|
||||
espressif/i2c_bus:
|
||||
component_hash: e3dddc78baa172f4768f3973fbecbd6c6c1f2cb23cc6a36cf3132758be092482
|
||||
dependencies:
|
||||
- name: espressif/cmake_utilities
|
||||
registry_url: https://components.espressif.com
|
||||
require: private
|
||||
version: 0.*
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=4.0'
|
||||
source:
|
||||
registry_url: https://components.espressif.com
|
||||
type: service
|
||||
version: 1.4.0
|
||||
idf:
|
||||
source:
|
||||
type: idf
|
||||
version: 6.0.0
|
||||
lvgl/lvgl:
|
||||
component_hash: 096c69af22eaf8a2b721e3913da91918c5e6bf1a762a113ec01f401aa61337a0
|
||||
dependencies: []
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
version: 9.2.2
|
||||
waveshare/esp_lcd_jd9365_10_1:
|
||||
component_hash: 148d03ade699a7fa0f08c98e86c1df3d32e92580fac421c04e0ee5b779e86267
|
||||
dependencies:
|
||||
- name: espressif/cmake_utilities
|
||||
registry_url: https://components.espressif.com
|
||||
require: private
|
||||
version: 0.*
|
||||
- name: espressif/i2c_bus
|
||||
registry_url: https://components.espressif.com
|
||||
require: private
|
||||
version: ^1.3.0
|
||||
- name: idf
|
||||
require: private
|
||||
version: '>=5.3'
|
||||
source:
|
||||
registry_url: https://components.espressif.com/
|
||||
type: service
|
||||
targets:
|
||||
- esp32p4
|
||||
version: 1.0.3
|
||||
direct_dependencies:
|
||||
- chmorgan/esp-audio-player
|
||||
- chmorgan/esp-file-iterator
|
||||
- espressif/esp32_p4_function_ev_board
|
||||
- espressif/esp_codec_dev
|
||||
- espressif/esp_h264
|
||||
- espressif/esp_lcd_ek79007
|
||||
- espressif/esp_lcd_ili9881c
|
||||
- espressif/esp_lcd_st7701
|
||||
- espressif/esp_lcd_touch_gt911
|
||||
- espressif/esp_lvgl_port
|
||||
- idf
|
||||
- lvgl/lvgl
|
||||
- waveshare/esp_lcd_jd9365_10_1
|
||||
manifest_hash: a4c4427327e0b608f119f70703a101fb1b83f3233b119303c0778d6596765469
|
||||
target: esp32p4
|
||||
version: 2.0.0
|
||||
@@ -0,0 +1,14 @@
|
||||
set(LV_DEMO_DIR ../managed_components/lvgl__lvgl/demos)
|
||||
file(GLOB_RECURSE LV_DEMOS_SOURCES ${LV_DEMO_DIR}/*.c)
|
||||
|
||||
idf_component_register(
|
||||
SRCS main.c ${LV_DEMOS_SOURCES}
|
||||
INCLUDE_DIRS . ${LV_DEMO_DIR})
|
||||
|
||||
idf_component_get_property(LVGL_LIB lvgl__lvgl COMPONENT_LIB)
|
||||
target_compile_options(
|
||||
${LVGL_LIB}
|
||||
PRIVATE
|
||||
-DLV_LVGL_H_INCLUDE_SIMPLE
|
||||
-DLV_USE_DEMO_MUSIC
|
||||
)
|
||||
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# "main" pseudo-component makefile.
|
||||
#
|
||||
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
lvgl/lvgl:
|
||||
version: 9.2.*
|
||||
public: true
|
||||
espressif/esp_lcd_st7701: ^1.1.3
|
||||
espressif/esp_h264: ^1.1.2
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include "nvs_flash.h"
|
||||
#include "nvs.h"
|
||||
#include "esp_log.h"
|
||||
#include "esp_err.h"
|
||||
#include "esp_check.h"
|
||||
#include "esp_event.h"
|
||||
#include "esp_system.h"
|
||||
#include "driver/uart.h"
|
||||
#include "esp_memory_utils.h"
|
||||
#include "lvgl.h"
|
||||
#include "bsp/esp-bsp.h"
|
||||
#include "bsp/display.h"
|
||||
#include "bsp_board_extra.h"
|
||||
#include "lv_demos.h"
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
bsp_display_cfg_t cfg = {
|
||||
.lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(),
|
||||
.buffer_size = BSP_LCD_DRAW_BUFF_SIZE,
|
||||
.double_buffer = BSP_LCD_DRAW_BUFF_DOUBLE,
|
||||
.flags = {
|
||||
.buff_dma = true,
|
||||
.buff_spiram = false,
|
||||
.sw_rotate = true,
|
||||
}
|
||||
};
|
||||
bsp_display_start_with_config(&cfg);
|
||||
bsp_display_backlight_on();
|
||||
|
||||
bsp_display_lock(0);
|
||||
|
||||
|
||||
// lv_demo_music();
|
||||
// lv_demo_benchmark();
|
||||
lv_demo_widgets();
|
||||
|
||||
bsp_display_unlock();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
# Name, Type, SubType, Offset, Size, Flags
|
||||
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
|
||||
nvs, data, nvs, 0x9000, 0x6000,
|
||||
phy_init, data, phy, 0xf000, 0x1000,
|
||||
factory, app, factory, , 8M,
|
||||
storage, data, spiffs, , 7M,
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,47 @@
|
||||
# This file was generated using idf.py save-defconfig. It can be edited manually.
|
||||
# Espressif IoT Development Framework (ESP-IDF) 5.4.0 Project Minimal Configuration
|
||||
#
|
||||
CONFIG_IDF_TARGET="esp32p4"
|
||||
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
|
||||
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
||||
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||
CONFIG_COMPILER_OPTIMIZATION_PERF=y
|
||||
CONFIG_SPIRAM=y
|
||||
CONFIG_SPIRAM_SPEED_200M=y
|
||||
CONFIG_SPIRAM_XIP_FROM_PSRAM=y
|
||||
CONFIG_CACHE_L2_CACHE_256KB=y
|
||||
CONFIG_CACHE_L2_CACHE_LINE_128B=y
|
||||
CONFIG_ESP_MAIN_TASK_STACK_SIZE=10240
|
||||
CONFIG_FREERTOS_HZ=1000
|
||||
CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y
|
||||
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
|
||||
CONFIG_LV_USE_CLIB_MALLOC=y
|
||||
CONFIG_LV_USE_CLIB_STRING=y
|
||||
CONFIG_LV_USE_CLIB_SPRINTF=y
|
||||
CONFIG_LV_DEF_REFR_PERIOD=15
|
||||
CONFIG_LV_OS_FREERTOS=y
|
||||
CONFIG_LV_DRAW_SW_DRAW_UNIT_CNT=2
|
||||
CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM=y
|
||||
CONFIG_LV_FONT_MONTSERRAT_12=y
|
||||
CONFIG_LV_FONT_MONTSERRAT_16=y
|
||||
CONFIG_LV_FONT_MONTSERRAT_18=y
|
||||
CONFIG_LV_FONT_MONTSERRAT_20=y
|
||||
CONFIG_LV_FONT_MONTSERRAT_22=y
|
||||
CONFIG_LV_FONT_MONTSERRAT_24=y
|
||||
CONFIG_LV_FONT_MONTSERRAT_26=y
|
||||
CONFIG_LV_USE_FONT_COMPRESSED=y
|
||||
CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_"
|
||||
CONFIG_LV_USE_SYSMON=y
|
||||
CONFIG_LV_USE_PERF_MONITOR=y
|
||||
CONFIG_LV_USE_IMGFONT=y
|
||||
CONFIG_LV_USE_DEMO_WIDGETS=y
|
||||
CONFIG_LV_USE_DEMO_BENCHMARK=y
|
||||
CONFIG_LV_USE_DEMO_RENDER=y
|
||||
CONFIG_LV_USE_DEMO_SCROLL=y
|
||||
CONFIG_LV_USE_DEMO_STRESS=y
|
||||
CONFIG_LV_USE_DEMO_TRANSFORM=y
|
||||
CONFIG_LV_USE_DEMO_MUSIC=y
|
||||
CONFIG_LV_DEMO_MUSIC_AUTO_PLAY=y
|
||||
CONFIG_LV_USE_DEMO_FLEX_LAYOUT=y
|
||||
CONFIG_LV_USE_DEMO_MULTILANG=y
|
||||
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user