Repository navigation
Add rp2040 workarounds to avoid register warnings - #1395
Conversation
Zitt
commented
Jun 4, 2022
- add rp2040 platform
- rp2040: fix some issues with fastpin/spi bitbanging (thread safety and accidental use of wrong reg for hival,loval)
- rp2040: support using m0clockless output implementation for >8 strips
- rp2040: switch to custom PIO program that doesn't use sideset avoiding sideset means that we double the max instruction delay, which should increase our timing resolution it also means that there's no longer a separately-licensed block of code included
…d accidental use of wrong reg for hival,loval)
PIO-based/M0 generic implementation is controlled by FASTLED_RP2040_CLOCKLESS_PIO it *should* be able to automatically fall back to m0clockless from PIO automatically, but for some reason I'm having trouble getting that to work (requires more investigation, but at least this isn't a regression) CPU frequency should be set in F_CPU or VARIANT_MCK before including FastLED if overclocking (for m0clockless only) (becuase we need to know frequency at compile time, but pico sets it at runtime -- it might make sense to write a custom bitbang output to work around this) PIO timing and clock divider is now automatically scaled from input CLOCKLESS_FREQUENCY to the fastest rate possible with the PIO program's delay slots (this simplifies timing of m0clockless by having it use CPU frequency directly)
avoiding sideset means that we double the max instruction delay, which should increase our timing resolution it also means that there's no longer a separately-licensed block of code included
pulls 3.5 into rp2040 fastled branch
|
workarounds to suppress |
|
Sure would love to use RP2040 on FastLED some time in the next century, lol. |
|
This is a great contribution -- thank you for the new platform support, and all the assistance getting it up and running! Thank you again for your help with FastLED! |
|
FastLED is on a merging ROLL today, woohoo! Any ETA for an official 3.6.x release with the new docs and RP2040 support? |
|
In file included from d:\Arduino\libraries\FastLED\src/FastLED.h:58, |
|
Looking forward to the new version release so I can try this out! Many thanks for your contribution and thank you maintainers for putting it all together. |
|
Is there any way in platformio to be able to already test this, I will get two arduino nano rp2040 connects in about 3 days. |
|
Sorry but I can't compile with FASTLED_ALLOW_INTERRUPTS = 1 But with FASTLED_ALLOW_INTERRUPTS = 0 it compiles just fine. |