Hi everyone! I'm having troubles compiling the example ParallelOutputDemo for an Aduino Due .

Hi everyone!

I’m having troubles compiling the example ParallelOutputDemo for an Aduino Due . Fastled lib is fresh pulled and installed, IDE is 1.6.12

In file included from C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/fastled_arm_sam.h:9:0,

             from C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms.h:18,

             from C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/FastLED.h:52,

             from C:\Users\ANDEL_~1\AppData\Local\Temp\arduino_modified_sketch_525948\ParallelOutputDemo.ino:1:

C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/clockless_block_arm_sam.h: In instantiation of ‘void InlineBlockClocklessController<LANES, FIRST_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::showPixels(PixelController<RGB_ORDER, LANES, 255ul>&) [with unsigned char LANES = 2u; int FIRST_PIN = 25; int T1 = 42; int T2 = 126; int T3 = 42; EOrder RGB_ORDER = (EOrder)66u; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 50]’:

C:\Users\ANDEL_~1\AppData\Local\Temp\arduino_modified_sketch_525948\ParallelOutputDemo.ino:47:1: required from here

C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/clockless_block_arm_sam.h:86:27: error: no matching function for call to ‘InlineBlockClocklessController<2u, 25, 42, 126, 42, (EOrder)66u, 0, false, 50>::showRGBInternal(PixelController<(EOrder)66u, 2, 255ul>&)’

 showRGBInternal(pixels);

                       ^

C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/clockless_block_arm_sam.h:86:27: note: candidate is:

C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/clockless_block_arm_sam.h:91:18: note: static uint32_t InlineBlockClocklessController<LANES, FIRST_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::showRGBInternal(PixelController<RGB_ORDER, LANES, (((1 << LANES) - 1) & ((FIRST_PIN == 2) ? 255 : 255))>&) [with unsigned char LANES = 2u; int FIRST_PIN = 25; int T1 = 42; int T2 = 126; int T3 = 42; EOrder RGB_ORDER = (EOrder)66u; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 50; uint32_t = long unsigned int]

static uint32_t showRGBInternal(PixelController<RGB_ORDER, LANES, PORT_MASK> &allpixels) {

              ^

C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/clockless_block_arm_sam.h:91:18: note: no known conversion for argument 1 from ‘PixelController<(EOrder)66u, 2, 255ul>’ to ‘PixelController<(EOrder)66u, 2, 3ul>&’

C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/clockless_block_arm_sam.h: In instantiation of ‘void InlineBlockClocklessController<LANES, FIRST_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::showPixels(PixelController<RGB_ORDER, LANES, 255ul>&) [with unsigned char LANES = 2u; int FIRST_PIN = 25; int T1 = 59; int T2 = 93; int T3 = 59; EOrder RGB_ORDER = (EOrder)66u; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 50]’:

C:\Users\ANDEL_~1\AppData\Local\Temp\arduino_modified_sketch_525948\ParallelOutputDemo.ino:47:1: required from here

C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/clockless_block_arm_sam.h:86:27: error: no matching function for call to ‘InlineBlockClocklessController<2u, 25, 59, 93, 59, (EOrder)66u, 0, false, 50>::showRGBInternal(PixelController<(EOrder)66u, 2, 255ul>&)’

 showRGBInternal(pixels);

                       ^

C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/clockless_block_arm_sam.h:86:27: note: candidate is:

C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/clockless_block_arm_sam.h:91:18: note: static uint32_t InlineBlockClocklessController<LANES, FIRST_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::showRGBInternal(PixelController<RGB_ORDER, LANES, (((1 << LANES) - 1) & ((FIRST_PIN == 2) ? 255 : 255))>&) [with unsigned char LANES = 2u; int FIRST_PIN = 25; int T1 = 59; int T2 = 93; int T3 = 59; EOrder RGB_ORDER = (EOrder)66u; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 50; uint32_t = long unsigned int]

static uint32_t showRGBInternal(PixelController<RGB_ORDER, LANES, PORT_MASK> &allpixels) {

              ^

C:\Users\andel_000\Documents\Arduino\libraries\FastLED-master/platforms/arm/sam/clockless_block_arm_sam.h:91:18: note: no known conversion for argument 1 from ‘PixelController<(EOrder)66u, 2, 255ul>’ to ‘PixelController<(EOrder)66u, 2, 3ul>&’

Grab the most recent version from github, I just put a fix in for this.

Awesome! I’ll check it out asap. Thanks so much

Problem solved. Thanks again.

Sorry, I spoke to soon. While the code compiles now, it doesn’t turn any led on… like there’s no output at all on the pins. Changing the addLeds setup to non-parallel and everything lights up (same hardware, same pins). Any ideas or debug I could turn on to find out what’s going on?

Not offhand - other than trying to set the lane count to 8 (make sure to provide enough led data for that!) - just in case there’s something that isn’t handling fewer lanes welll. It’s been a while since I’ve tried the due parallel code, so it’s possible something is off in there.

8 lanes confirmed working. Thanks again!

I just checked in a fix that should help the parallel output when there’s less than 8 channels - but don’t have an easy setup to test it here (but looking at the code it was glaringly obvious where I had forgotten to make a set of changes when I switched over the clock that I was using for timing on the due). - master@HEAD in the main repo.

The project is wired with 8 channels and working great so far. I will test with less tomorrow and let you know.

Tested and less than 8 channels works fine now too. If you need someone in the future to test the library with a due and parallel output, just let me know. I’m happy to help :slight_smile:

Hi, are you using any level changer at the output of your arduino DUE ?, I am thinking of using that platform for the low cost and easy to acquire in my country.

Yes, 2 4x level changers to bring the signal to 5V. I still need to work on fixing the RFI a 8x1 meter cable generates. There are no stuck leds or crosstalk. just lots of noise on the radio. I’ll just shorten them …

Could you show me your connection scheme of your matrix ?, I am still learning about how to make this type of arrangements with output in parallel and behave as a single matrix. Obtaining the benefit of greater data writing speed on the output

Basically like this with 8 data lines, not 4… http://imgur.com/a/SST4S