Having a strange issue with my arduino due and fastLED....

Having a strange issue with my arduino due and fastLED…

It gives me the following error code:

In file included from /Users/Michael/Documents/Arduino/libraries/FastLED/platforms/arm/sam/fastled_arm_sam.h:6:0,
from /Users/Michael/Documents/Arduino/libraries/FastLED/platforms.h:18,
from /Users/Michael/Documents/Arduino/libraries/FastLED/FastLED.h:44,
from /Users/Michael/Documents/Arduino/teensy/teensy.ino:29:
/Users/Michael/Documents/Arduino/libraries/FastLED/platforms/arm/sam/fastpin_arm_sam.h:41:33: error: macro “sport” requires 2 arguments, but only 1 given
inline static port_ptr_t sport() attribute ((always_inline)) { return &_PSOR::r(); }
^
/Users/Michael/Documents/Arduino/libraries/FastLED/platforms/arm/sam/fastpin_arm_sam.h:42:33: error: macro “cport” requires 2 arguments, but only 1 given
inline static port_ptr_t cport() attribute ((always_inline)) { return &_PCOR::r(); }
^
In file included from /Users/Michael/Documents/Arduino/libraries/FastLED/platforms/arm/sam/fastled_arm_sam.h:9:0,
from /Users/Michael/Documents/Arduino/libraries/FastLED/platforms.h:18,
from /Users/Michael/Documents/Arduino/libraries/FastLED/FastLED.h:44,
from /Users/Michael/Documents/Arduino/teensy/teensy.ino:29:
/Users/Michael/Documents/Arduino/libraries/FastLED/platforms/arm/sam/clockless_block_arm_sam.h:153:34: error: macro “sport” requires 2 arguments, but only 1 given
*FastPin<FIRST_PIN>::sport() = PORT_MASK;
^
/Users/Michael/Documents/Arduino/libraries/FastLED/platforms/arm/sam/clockless_block_arm_sam.h:156:34: error: macro “cport” requires 2 arguments, but only 1 given
*FastPin<FIRST_PIN>::cport() = (~b2.bytes[7-i]) & PORT_MASK;
^
/Users/Michael/Documents/Arduino/libraries/FastLED/platforms/arm/sam/clockless_block_arm_sam.h:159:34: error: macro “cport” requires 2 arguments, but only 1 given
*FastPin<FIRST_PIN>::cport() = PORT_MASK;
^
/Users/Michael/Documents/Arduino/libraries/FastLED/platforms/arm/sam/clockless_block_arm_sam.h:168:34: error: macro “sport” requires 2 arguments, but only 1 given
*FastPin<FIRST_PIN>::sport() = PORT_MASK;
^
/Users/Michael/Documents/Arduino/libraries/FastLED/platforms/arm/sam/clockless_block_arm_sam.h:171:34: error: macro “cport” requires 2 arguments, but only 1 given
*FastPin<FIRST_PIN>::cport() = (~b2.bytes[7-i]) & PORT_MASK;
^
/Users/Michael/Documents/Arduino/libraries/FastLED/platforms/arm/sam/clockless_block_arm_sam.h:174:34: error: macro “cport” requires 2 arguments, but only 1 given
*FastPin<FIRST_PIN>::cport() = PORT_MASK;

Here is how i initialized the leds…
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);

I am using A0 as the pin, but eve if i change it to a normal digital pin there is no difference…

What version of arduino and what version of the due platform? It sounds like somebody on the platform side decided to do #define sport and #define cport which the compiler is then (un)helpfully attempting to substitute into place there. I really want to set fire to the platform folks sometimes.

Can you post your code to pastebin or gist?

Ok, so it does not happen with the examples (the compile)… just with my code. My code is very very long

Here is my setup, loop, and and initialization stuff… if you want to dig through 20k lines of code i’ll also post the zip… but i have a feeling one of the libraries i am using is conflictiing with fastLED

http://pastebin.com/icLub50K

I am using Arduino 1.6.9 with the Arduino Sam Boards 1.6.9

Try adding

#undef cport
#undef sport

just before the #include<FastLED.h>

That does compile… i’ll have to see if it affects other parts of my program