New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trinket M0 onboard APA102 led #550

Open
FranckMarcotte opened this Issue Jan 14, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@FranckMarcotte

FranckMarcotte commented Jan 14, 2018

3.1.8 Trinket M0 support question. On this board there is an onboard APA102 led connected to pins 7 (data) and 8 (clock). It seems those pins are not defined in FastLED.

FastLED.addLeds<APA102, 7, 8>(leds, 1);

returns the following https://pastebin.com/4Vrh5pa0

"Invalid pin specified"

@FranckMarcotte

This comment has been minimized.

FranckMarcotte commented Jan 14, 2018

I manually added the pins 7 and 8 to fastpin_arm_d21.h and changed MAX_PIN to 7 :

#elif defined(ADAFRUIT_TRINKET_M0)

#define MAX_PIN 7
_DEFPIN_ARM( 0, 0, 8); _DEFPIN_ARM( 1, 0, 2); _DEFPIN_ARM( 2, 0, 9);
_DEFPIN_ARM( 3, 0, 7); _DEFPIN_ARM( 4, 0, 6); _DEFPIN_ARM( 7, 0, 0); _DEFPIN_ARM( 8, 0, 1);

#define SPI_DATA  4
#define SPI_CLOCK 3

#define HAS_HARDWARE_PIN_SUPPORT 1

#endif

And it's working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment