focalintent / FastLED-Sparkcore

SparkCore specific port of FastLED
MIT License
24 stars 34 forks source link

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] #10

Open fotoKrille opened 8 years ago

fotoKrille commented 8 years ago

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()) {
                                ^
focalintent commented 8 years ago

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.

ScruffR commented 6 years ago

Late here, but on a the Particle devices pins 8 & 9 don't exist so the mapping is - just like the pins - non-existent ;-)