Adding display capabolity (esp-idf)

nicola
Posts: 29
Joined: Mon Feb 18, 2019 8:04 am

Adding display capabolity (esp-idf)

Postby nicola » Sun Dec 07, 2025 2:48 pm

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

Xuxin
Espressif staff
Espressif staff
Posts: 94
Joined: Thu Sep 22, 2022 3:35 am

Re: Adding display capabolity (esp-idf)

Postby Xuxin » Mon Dec 08, 2025 2:10 am


nicola
Posts: 29
Joined: Mon Feb 18, 2019 8:04 am

Re: Adding display capabolity (esp-idf)

Postby nicola » Tue Dec 09, 2025 10:23 am

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?

nicola
Posts: 29
Joined: Mon Feb 18, 2019 8:04 am

Re: Adding display capabolity (esp-idf)

Postby nicola » Sun Dec 14, 2025 9:04 am

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.
Attachments
directory_content.png
directory_content.png (50.6 KiB) Viewed 7702 times

Who is online

Users browsing this forum: No registered users and 1 guest