-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
NeoPixelBus on a EPS32 board with esp-idf framework #684
Comments
Have you tried it? I would imagine with little effort on your side you should be able to just include NeoPixelBus.h and it should work. A simple Arduino.h file containing the very few specific arduino calls made and I would think it would work. It is unlikely that I would make the effort without an incitive, but I will mark it and leave it active. I have tons of features to work as is. |
I know C and C++ but I don't quite understand what you mean with your explanation. Can you help me on my way so that I can make the effort myself? |
My library includes "Arduino.h", the idf will not have this, so create an empty one in your project. As you compile and find errors about missing arduino specific calls/defines, add wrappers in your Arduino.h as needed. I suspect there is just going to be a few. digitalWrite(), pinMode() are examples. Heck, you might be able to just copy them from the ardunio esp32 source code. Most of the lower level stuff I use is IDF calls. |
Just chiming in, I am also running into this issue. I'm not sure how I can go about adding "Arduino.h" into esphome. |
I also don't know esphome. Have you asked there if there is a way to include Arduino libraries? @Surgikill In the compiler output, what errors are you getting? Also include the make line that runs the compiler so I can view the defines (-Dblahblah). |
@Makuna This is the output when I try to compile. `INFO ESPHome 2023.5.5 light.neopixelbus: [source /config/esphome/office-presencebox.yaml:260] This feature is only available with frameworks ['arduino']. I don't even know what the make line is. ESPhome just uses yaml configurations to then flash devices. |
ESPHome requires the framework Arduino for their use of my Library it looks like. Again, not a ESPHome person, so talking with them first is the way to go. |
it turned out you are right. Some examples are running fine on my board. one needs to copy some files, including many HAL files for different chips, with some modifications. Modifications to
do you mean, if someone maintains |
I can also help with |
If they don't affect the Arduino building, then yes, I will merge. |
To which branch should I submit the PRs? |
Master. Master is always the next upcoming release. Each release gets a tag into master when it was stable. Other branches are usually prototype changes or changes so dramatic they require some time to "bake" with concerned users before they get rolled into master. |
Is your feature request related to a problem? Please describe.
This feature request is not based on a problem, but missing support for esp-idf framework.
Describe the solution you'd like
I'd like it if NeoPixelBus could support a EPS32 board with the end goal to have an integration possibly inside ESPHome via the esp-idf framework
Board example e.g. like Atom Lite
Additional context
There are several ESP32 based boards designed which could be used with NeoPixelBus for controlling e.g. SK6812 or WS2812 led strips, it would be great if they could be run inside ESPHome via NeoPixelBus.
The text was updated successfully, but these errors were encountered: