We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The ESP32-S3 has an LCD peripheral included. I got it to work with esp-idf-sys, but the functions and types aren't generated for it.
I solved it by creating my own bindings.h with the following content:
#if CONFIG_IDF_TARGET_ESP32S3 #include ".embuild/espressif/esp-idf/release-v5.1/components/esp_lcd/include/esp_lcd_types.h" #include ".embuild/espressif/esp-idf/release-v5.1/components/esp_lcd/include/esp_lcd_panel_rgb.h" #include ".embuild/espressif/esp-idf/release-v5.1/components/esp_lcd/include/esp_lcd_panel_io.h" #include ".embuild/espressif/esp-idf/release-v5.1/components/esp_lcd/include/esp_lcd_panel_ops.h" #include ".embuild/espressif/esp-idf/release-v5.1/components/esp_lcd/include/esp_lcd_panel_vendor.h" #include ".embuild/espressif/esp-idf/release-v5.1/components/esp_lcd/include/esp_lcd_panel_commands.h" #include ".embuild/espressif/esp-idf/release-v5.1/components/esp_lcd/interface/esp_lcd_panel_interface.h" #include ".embuild/espressif/esp-idf/release-v5.1/components/esp_lcd/interface/esp_lcd_panel_io_interface.h" #endif
and then included it in Cargo.toml:
[package.metadata.esp-idf-sys] extra_components = [{ bindings_header = "bindings.h" }]
This should be included by default (with the correct relative path of course, I'm doing this based on the installation in the project).
The text was updated successfully, but these errors were encountered:
Would you like to open a PR against esp-idf-sys that adds these bindings to its bindings.h file?
esp-idf-sys
bindings.h
Sorry, something went wrong.
#216
17dbebd
Fixed by 9551878
No branches or pull requests
The ESP32-S3 has an LCD peripheral included. I got it to work with esp-idf-sys, but the functions and types aren't generated for it.
I solved it by creating my own bindings.h with the following content:
and then included it in Cargo.toml:
This should be included by default (with the correct relative path of course, I'm doing this based on the installation in the project).
The text was updated successfully, but these errors were encountered: