Hello,
The trinket M0 comes with RGB lights. These things are so bright that I see spots when I look away. I have tape over it, but it is really bugging me. I have to look for I/O on the board running test code to exercise hardware peripherals. I tried to look up the I/O they are attached to and tried in the compiler to shut them down without success. Any help would be appreciated.
Does this page help? It says it controls the onboard dotstar LED via Arduino IDE.
And this page uses CircuitPython.
Both found with a search for "The trinket M0 comes with RGB lights arduino ide".
I figured it out. Thanks for your help!
Please share your solution. Others may come upon this thread and your solution may be able to help them.
This turns off the RGB lights on Trinket M0 ONLY....Be careful what you get from mail order. I got one order that had half M0 and the other was Attiny85. They look nearly identical.
#include <Adafruit_DotStar.h>
// Because conditional #includes don't work w/Arduino sketches...
#include <SPI.h> // COMMENT OUT THIS LINE FOR GEMMA OR TRINKET
#define NUMPIXELS 1 // Number of LEDs in strip
// Here's how to control the LEDs from any two pins:
#define DATAPIN 7
#define CLOCKPIN 8
Adafruit_DotStar strip = Adafruit_DotStar(
NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BGR);
// The last parameter is optional -- this is the color data order of the
// DotStar strip, which has changed over time in different production runs.
// Your code just uses R,G,B colors, the library then reassigns as needed.
// Default is DOTSTAR_BRG, so change this if you have an earlier strip.
// Hardware SPI is a little faster, but must be wired to specific pins
// (Arduino Uno = pin 11 for data, 13 for clock, other boards are different).
// Adafruit_DotStar strip = Adafruit_DotStar(NUMPIXELS, DOTSTAR_BRG);
void setup() {
strip.begin(); // Initialize pins for output
strip.show(); // Turn all LEDs off
}