Does FastLED work fine on Adafruit's M0 feather board?

Does FastLED work fine on Adafruit’s M0 feather board?

I’m getting compile warnings on PlatformIO+FastLED+M0 board.

Been using Teensy+FastLED for a few years but I need a LoRa radio for the next project so was going to try AdaFruit’s Arduino Zero M0 board as a single board and would love to use its hardware SPI instead of bitbanging.

I’m getting these warnings though. Any way to fix it and enable HW SPI?

lib\FastLED/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged outpu

lib\FastLED/FastLED.h:558:2: warning: #warning “No pin/port mappings found, pin access will be slightly slower. See fastpin.h for
info.” [-Wcpp]

There’s no hardware SPI support for the Zero M0 yet - but the lack of pin definitions is a bigger problem – have you grabbed the latest version of FastLED from github? Also - can you post a full buildlog to http://gist.github.com - I want to see what platform defines are being set, and whether or not they’ll trigger the Arduino Zero support in FastLED (the warnings you’re giving definitely mean it isn’t - but without seeing your full buildlog, it’s hard to tell whether the reason is you have a pre-arduino zero version of FastLED handy or because the m0 feather is using different platform defines (and potentially different pin/port mappings))

Thanks for replying Daniel.

I posted a verbose build Gist at:

The Project is in it’s infancy but you should be able to just build it on Platform IO without even having the board, if you need more info. Sorry for the RadioHead lib noise in the build output.

Cheers!

And yes, this is using FastLED 3.1.5 from fresh from GitHub. BTW you may want to update the library.json to match 3.1.5 in FastLED.h. PlatformIO kept saying 3.1.4 when building because of that.

Ok - it looks like I haven’t done pin/port mappings for the feather M0 (side note, I also don’t use playformIO at all). Unfortunately I’m traveling for the next week so I won’t be able to mess around with this for at least that long :confused:

I’ll do some research on my end to figure out fastspi.h and what the Feather M0 aka Arduino Zero would #define there. Ping me if you have any hints and safe travels!

Hi, did you get it working on your Feather? I’d love to also use it.

Sorry, we moved on to the 8266/ESP32 as the main platform.