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

ESP32C3 Compatibility #34

Open
NexDrill opened this issue Jan 18, 2023 · 1 comment
Open

ESP32C3 Compatibility #34

NexDrill opened this issue Jan 18, 2023 · 1 comment

Comments

@NexDrill
Copy link

I am pretty well versed in the esp-idf, but I was wondering if I could get some direction on getting this to work with an esp32C3? I am looking at potentially adding the c3 to the platforms.

@robertlipe
Copy link

I can't speak to the specifics, but esp-idf now offers a WS281x driver of its own.
https://components.espressif.com/components/espressif/led_strip
It doesn't use the FastLED API (that could probably be largely fixed via some wrappers if needed - and if someone else hasn't already done so. Bolting lib8tion on doesn't look hard.) but with it being maintained by Espressif themselves, it stands a better chance of tracking those "new" (C3 was 2020, IIRC) parts releases.

I have no experience with either this or that library (studying both is why I'm roaming the issues list here) but while this library looks to be highly tuned for performance and LOTS of blinkies, it's not obvious that the led_strip library shares that dedication. (Maybe it does and they just make it look easy.) So that might not be ideal if you're trying to drive hundreds and hundreds of blinkies, but it looks like it's actively supported since it's part of ESP-IDF proper so I'm guessing that it'll track newer hardware more actively.

But to your actual question, the hardware details of the newer parts (all the RISC-V parts) of the I2S are somewhat different than the legacy ESP32's. If you're using the ESP-IDF drivers, that's papered over for you, but if you're talking straight to the metal, prepare for some conditional compilation.

Good luck!

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

No branches or pull requests

2 participants