Hi, I'm having some problems with using blur2d combined with the XY foroward declaration.

Hi,

I’m having some problems with using blur2d combined with the XY foroward declaration. When compiling, I’m getting the following errors:

[-Wunused-variable]
C:\Users\Timo\AppData\Local\Temp\build6446048778024317284.tmp\FastLED\colorutils.cpp.o: In function `blurColumns(CRGB*, unsigned char, unsigned char, unsigned char)’:

libraries\FastLED31/colorutils.cpp:415: undefined reference to `XY(unsigned char, unsigned char)’

I have stumbled upon some solutions, but none of them will work for me. It surprises me a bit because I never had problems combining blur2d with the XY(x,y) function.

Anybody knows how I can solve this? I am using a teensy 3.2 with OCTOWS2811 adapter, running the most recent version of fastLED.

Here’s my code: https://bitbucket.org/snippets/TimoLejeune/9KbKR

Thanks a lot for your help in advance! :slight_smile:

Your function is defined wrong - the definition for XY should be:

uint16_t XY( uint8_t x, uint8_t y);

You have

uint16_t XY( int x, int y)

Those two functions have different types (an int is not the same as a uint8_t) - and so the compiler doesn’t line them up the way you’re expecting.

And once again it turns out easier than I anticipated. Thanks a lot Daniel, it works like a charm now!