Hello Everyone;
I am working on a project for my theatre, building a LED matrix, I have been working with Tobias Ebsen’s OpenPixelNode found here: https://github.com/media-architecture/OpenPixelNode/blob/master/Software/OpenPixelNode/OpenPixelNode.ino
Arduino Version: 1.0.1
Board: Arduino Uno R3
FastLED Library version: Current
Build From: Windows
I am getting these errors on compiling for Lines 93-96…
OpenPixelNode:93: error: no matching function for call to ‘SK6812Controller<0u, GRB>::show(CRGB*, unsigned int)’
C:~\Arduino\libraries\FastLED/controller.h:394: note: candidates are: void CPixelLEDController<RGB_ORDER, LANES, MASK>::show(const CRGB*, int, CRGB) [with EOrder RGB_ORDER = GRB, int LANES = 1, long unsigned int MASK = -1ul]
Any help you can provide would be awesome!
Thanks
James
That’s because that code was written against an older version of the library - show now takes three values - the CRGB data, the length (in number of leds) and hte brightness. E.g. you need:
case 0: port1.show((CRGB*)artnet.getDmxData(), artnet.getDmxLength() / 3, 255);break;
Thanks for the input Daniel;
I am still getting some issues, I have updated the relevant code to:
case 0:
port1.show((CRGB*)artnet.getDmxData(), artnet.getDmxLength() / 3, 255);
break;
however I am now getting the following error on compile:
C:~\Arduino\libraries\FastLED/controller.h:394: error: ‘void CPixelLEDController<RGB_ORDER, LANES, MASK>::show(const CRGB*, int, CRGB) [with EOrder RGB_ORDER = GRB, int LANES = 1, long unsigned int MASK = -1ul]’ is protected
OpenPixelNode:103: error: within this context
Would it be worth going back to a previous version of FastLED to solve this?
Yeah - maybe - this isn’t a very well documented/supported way of using the library (you’re basically using methods meant to be used by the library internally to do things) - and i’m going to be offline for the next day or so - so I can’t chase down what changes you’d need to make to your code or the library to get it to work the way you want/expect.
No worries. I’ll try rolling back to V2 and earlier and see if that solves it.
Thanks!
James
It compiles with V2 finalrc
Thanks for the help!
James
Could the matrix be ARTNET? I’m working on a project that does that