First off, thanks for creating the fantastic Trinket M0. It's a blast to use.
I'm a bit stomped on this on... I've ordered a Trinket M0 about a year ago for a Halloween project, written code for it, uploaded and been using it for the past year, all working great.
I've just ordered 3 new Trinket M0s and uploaded the same code, with same setup, but this time it doesn't seem to work anymore.
I've using FastLED's Blink example to troubleshoot, and it seems the issue is that the latest Adafruit SAMD Boards (1.7.10) causes the issue. A ~year ago I used 1.6.8 and everything worked great.
Can anybody, please shed some light on what the changes are and how I could get the code working again with the latest version?
Thanks so much for any help.
Setup:
"Adafruit Mini Skinny NeoPixel Digital RGB" connected to Trinket M0 as follows:
Positive (Red) to USB, Ground (Black) to Ground and Data (White) to Pin 4.
I'm running the following test Blink code:
Code: Select all
#include <FastLED.h>
// How many leds in your strip?
#define NUM_LEDS 1
#define DATA_PIN 4
#define CLOCK_PIN 13
// Define the array of leds
CRGB leds[NUM_LEDS];
void setup() {
// Uncomment/edit one of the following lines for your leds arrangement.
// ## Clockless types ##
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); // GRB ordering is assumed
}
void loop() {
// Turn the LED on, then pause
leds[0] = CRGB::Red;
FastLED.show();
delay(500);
// Now turn the LED off, then pause
leds[0] = CRGB::Black;
FastLED.show();
delay(500);
}
Thanks for your time and insight.
-s