FastLED-Sparkcore
FastLED-Sparkcore copied to clipboard
comparison between distinct pointer types 'NSFastLED::FastPin<9u>::port_ptr_t {aka volatile unsigned char*}' and 'NSFastLED::_ARMPIN<10u, 5u, 32ul, NSFastLED::__gen_struct_GPIOC>::port_ptr_t {aka volatile long unsigned int*}' lacks a cast [-fpermissive]
Veryfing code using this library in Particle Build fails with this error:
FastLED/fastspi_bitbang.h:316:32: error: comparison between distinct pointer types 'NSFastLED::FastPin<9u>::port_ptr_t {aka volatile unsigned char*}' and 'NSFastLED::_ARMPIN<10u, 5u, 32ul, NSFastLED::__gen_struct_GPIOC>::port_ptr_t {aka volatile long unsigned int*}' lacks a cast [-fpermissive]
if(FastPin<DATA_PIN>::port() != FastPin<CLOCK_PIN>::port()) {
^
Ah! The person who did the photon port left out pin/port mapping definitions for pins 8 and 9 for some reason - which is why what you're trying to build is failing. I'll look to see if I can find definitions for them - in the meantime, try using a pin other than 8 or 9.
Late here, but on a the Particle devices pins 8 & 9 don't exist so the mapping is - just like the pins - non-existent ;-)