Skip to content
New issue

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

Include bindings for esp_lcd #216

Closed
anlumo opened this issue Jul 2, 2023 · 2 comments
Closed

Include bindings for esp_lcd #216

anlumo opened this issue Jul 2, 2023 · 2 comments

Comments

@anlumo
Copy link

anlumo commented Jul 2, 2023

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).

@ivmarkov
Copy link
Collaborator

ivmarkov commented Jul 9, 2023

Would you like to open a PR against esp-idf-sys that adds these bindings to its bindings.h file?

ivmarkov added a commit that referenced this issue Nov 20, 2023
@ivmarkov
Copy link
Collaborator

Fixed by 9551878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants