Repository navigation
Fix #842 by increasing compliance with constexpr restrictions - #845
Conversation
Specifically, cannot cast integer values to pointers in a constexpr, requiring use of intptr_t in the constexpr. Callers of the constexpr may then cast it at the non-constexpr location of use. See https://stackoverflow.com/questions/10369606/constexpr-pointer-value
|
I hope I'm writing in the correct space. I am having an issue using FastLED with the nRF52840DK in Segger Embedded Studios. I wanted to start troubleshooting by verifying that your updates for this board are included in the main library.. or are these fixes included only in some special download? |
|
@JWizlo -- I don't think FastLED is officially support except under Arduino. In addition, although the pins are defined, it hasn't yet beet tested / verified. It will generate a warning during build stating this. The variant support for PCA10056 is found at https://github.com/FastLED/FastLED/blob/master/platforms/arm/nrf52/fastpin_arm_nrf52_variants.h You most likely want to #define If you want to try to use Arduino pin numbers (unlikely, given you're using SES), also #define If you have issues, open a new issue (don't resurrect closed issues / merged PRs)... |
Fix #842
Specifically, cannot cast integer values to pointers in a constexpr,
requiring use of intptr_t in the constexpr. Callers of the constexpr
may then cast it at the non-constexpr location of use.
See https://stackoverflow.com/questions/10369606/constexpr-pointer-value