Feather Fire! I'm trying to load Mark Kriegsman   's Fire2012 sketch onto the

Feather Fire! I’m trying to load @Mark_Kriegsman 's Fire2012 sketch onto the Adafruit Feather M0 and am getting the error below. Not sure if this is a question for Mark or for @Phillip_Burgess – is it the M0 board support that doesn’t like the random() call? Or is this a FastLED-doesn’t-support-the-board issue?

Fire2012WithPalette.ino: In function ‘void loop()’:
Fire2012WithPalette:68: error: no matching function for call to ‘random()’
Fire2012WithPalette.ino:68:32: note: candidates are:
In file included from /Users/erin/Library/Arduino15/packages/adafruit/hardware/samd/1.0.6/cores/arduino/Arduino.h:72:0,
from /Users/erin/Documents/Arduino/libraries/FastLED/led_sysdefs.h:38,
from /Users/erin/Documents/Arduino/libraries/FastLED/FastLED.h:36,
from Fire2012WithPalette.ino:1:
/Users/erin/Library/Arduino15/packages/adafruit/hardware/samd/1.0.6/cores/arduino/WMath.h:22:13: note: long int random(long int)
extern long random( long ) ;
^
/Users/erin/Library/Arduino15/packages/adafruit/hardware/samd/1.0.6/cores/arduino/WMath.h:22:13: note: candidate expects 1 argument, 0 provided
/Users/erin/Library/Arduino15/packages/adafruit/hardware/samd/1.0.6/cores/arduino/WMath.h:23:13: note: long int random(long int, long int)
extern long random( long, long ) ;
^
/Users/erin/Library/Arduino15/packages/adafruit/hardware/samd/1.0.6/cores/arduino/WMath.h:23:13: note: candidate expects 2 arguments, 0 provided
no matching function for call to ‘random()’

I think I recall seeing this on other boards. Try changing random() to tandom(0,65535)

That work?

I changed it to random(0,65535) and it is compiling now. Thanks!!

Let me know how it works overall, too!

What a strange error. Good to know there’s a work around.

It’s because that particular platform doesn’t provide a zero-arguments version of random(), just the one- and two- argument versions.

So the workaround is to just call one of the ones that is provided!