-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add Arduino as Component examples #8878
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
Add Arduino as Component examples #8878
Conversation
|
||
If you want to use cloned Arduino-esp32 repository, you can build this example directly. | ||
Go to the example folder `arduino-esp32/idf_component_examples/Hello_world`. | ||
First you need to comment line 6 `pre_release: true` in examples `/main/idf_component.yml`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested it in a separated folder.
It is also necessary to comment out the line 5 override_path: '../../../'
as it may not exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, it should be removed by the ESP Registry so if you get it from there as an example, this won't exist. On other components it is done same way, for development purposes. If I understood correctly :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test it using the ESP component registry, but just copying it to my ~userName
folder and then running it from idf.py flash
.
Let's publish it and then we can test it with the ESP Registry tool. As you said it should work fine.
Some users may try it doing the same I did. This is the reason for the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! Just check the comment I made. I could be included in the README.md.
Can you add an example where PSRAM is used? There will be probably an include error for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of Change
Added new folder to the repository containing examples for running Arduino as an ESP-IDF component.
The examples will be also visible on ESP Registry and would be easy to set up the project with just one idf.py command to get all dependencies and have the proper SDK Config changes.
Tests scenarios
Tested locally on all SOCs.
Related links