Hi,
I have a project for esp32-box running on esp-idf/adf .
How can I add Display capability ? For example I want:
1. run a clock on the display
2. display T,H measure
Thanks
Adding display capabolity (esp-idf)
Re: Adding display capabolity (esp-idf)
Please refer to this link https://github.com/espressif/esp-bsp/tr ... r/examples.
Re: Adding display capabolity (esp-idf)
Hi Xuxin,
Thanks for reply.
I saw the example. How can I import the BSP display driver in my existing code ? Do I have to add it via SDKconfig (menuconfig) or by simply add the "h" files?
Thanks for reply.
I saw the example. How can I import the BSP display driver in my existing code ? Do I have to add it via SDKconfig (menuconfig) or by simply add the "h" files?
Re: Adding display capabolity (esp-idf)
Dear All,
In my esp-adf wev radio project ("play_http_mp3_example.c") I have cloned the esp-bsp repository in order to integrate esp-bsp and display functionalities for my esb32-box-3. Attached the content of my directory.
My root Cmake file is the following (I have added "add_subdirectory(components/esp-bsp/bsp/esp-box-3")):
# 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{ADF_PATH}/CMakeLists.txt)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(play_http_mp3)
# Add ESP-BSP as a subdirectory for your project
add_subdirectory(components/esp-bsp/bsp/esp-box-3)
My Main Cmake file is (I have commented previous sintax and replaced with "idf_component_register" phrase)
# set(COMPONENT_SRCS "play_http_mp3_example.c")
# set(COMPONENT_ADD_INCLUDEDIRS .)
#
# register_component()
#
idf_component_register(SRCS "play_http_mp3_example.c"
INCLUDE_DIRS "."
REQUIRES esp-bsp)
When I run:
idf.menuconfig I get error like:
"NOTICE: [1/9] espressif/cmake_utilities (0.5.3)
NOTICE: [2/9] espressif/dl_fft (0.3.1)
NOTICE: [3/9] espressif/esp-dsp (1.6.0)
NOTICE: [4/9] espressif/esp_lcd_ili9341 (1.2.0)
NOTICE: [5/9] espressif/esp_websocket_client (1.6.0)
NOTICE: [6/9] espressif/jsmn (1.1.0)
NOTICE: [7/9] espressif/nghttp (1.65.0~1)
NOTICE: [8/9] espressif/zlib (1.3.1)
NOTICE: [9/9] idf (5.5.1)
NOTICE: Skipping optional dependency: espressif/esp_hosted
NOTICE: Skipping optional dependency: espressif/esp_wifi_remote
CMake Error at C:/Users/GatewersUser1/esp/v5.5.1/esp-idf/tools/cmake/build.cmake:328 (message):
Failed to resolve component 'esp-bsp' required by component 'main': unknown
name.
Call Stack (most recent call first):
C:/Users/GatewersUser1/esp/v5.5.1/esp-idf/tools/cmake/build.cmake:371 (__build_resolve_and_add_req)
C:/Users/GatewersUser1/esp/v5.5.1/esp-idf/tools/cmake/build.cmake:685 (__build_expand_requirements)
C:/Users/GatewersUser1/esp/v5.5.1/esp-idf/tools/cmake/project.cmake:740 (idf_build_process)
CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1
PS C:\Users\GatewersUser1\Documents\Project\ESP\webRadio\pi"
Can you help me understand this error? Is this the right way to add esp-bsp components to an exsisting esp-adf project ?
Thanks.
In my esp-adf wev radio project ("play_http_mp3_example.c") I have cloned the esp-bsp repository in order to integrate esp-bsp and display functionalities for my esb32-box-3. Attached the content of my directory.
My root Cmake file is the following (I have added "add_subdirectory(components/esp-bsp/bsp/esp-box-3")):
# 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{ADF_PATH}/CMakeLists.txt)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(play_http_mp3)
# Add ESP-BSP as a subdirectory for your project
add_subdirectory(components/esp-bsp/bsp/esp-box-3)
My Main Cmake file is (I have commented previous sintax and replaced with "idf_component_register" phrase)
# set(COMPONENT_SRCS "play_http_mp3_example.c")
# set(COMPONENT_ADD_INCLUDEDIRS .)
#
# register_component()
#
idf_component_register(SRCS "play_http_mp3_example.c"
INCLUDE_DIRS "."
REQUIRES esp-bsp)
When I run:
idf.menuconfig I get error like:
"NOTICE: [1/9] espressif/cmake_utilities (0.5.3)
NOTICE: [2/9] espressif/dl_fft (0.3.1)
NOTICE: [3/9] espressif/esp-dsp (1.6.0)
NOTICE: [4/9] espressif/esp_lcd_ili9341 (1.2.0)
NOTICE: [5/9] espressif/esp_websocket_client (1.6.0)
NOTICE: [6/9] espressif/jsmn (1.1.0)
NOTICE: [7/9] espressif/nghttp (1.65.0~1)
NOTICE: [8/9] espressif/zlib (1.3.1)
NOTICE: [9/9] idf (5.5.1)
NOTICE: Skipping optional dependency: espressif/esp_hosted
NOTICE: Skipping optional dependency: espressif/esp_wifi_remote
CMake Error at C:/Users/GatewersUser1/esp/v5.5.1/esp-idf/tools/cmake/build.cmake:328 (message):
Failed to resolve component 'esp-bsp' required by component 'main': unknown
name.
Call Stack (most recent call first):
C:/Users/GatewersUser1/esp/v5.5.1/esp-idf/tools/cmake/build.cmake:371 (__build_resolve_and_add_req)
C:/Users/GatewersUser1/esp/v5.5.1/esp-idf/tools/cmake/build.cmake:685 (__build_expand_requirements)
C:/Users/GatewersUser1/esp/v5.5.1/esp-idf/tools/cmake/project.cmake:740 (idf_build_process)
CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1
PS C:\Users\GatewersUser1\Documents\Project\ESP\webRadio\pi"
Can you help me understand this error? Is this the right way to add esp-bsp components to an exsisting esp-adf project ?
Thanks.
- Attachments
-
- directory_content.png (50.6 KiB) Viewed 7700 times
Who is online
Users browsing this forum: No registered users and 1 guest
