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

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 this issue Apr 11, 2016 · 2 comments

Comments

@fotoKrille
Copy link

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
Copy link
Owner

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
Copy link

ScruffR commented Dec 27, 2017

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

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

3 participants