NeoPixelBus on a EPS32 board with esp-idf framework
roykrikke opened this issue · comments
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.
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.
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.