using arduino IDE and Gemma M0: I have the updated dotstar lib. I have tried several variations of dotstar control...can;t get it to turn off....tired pins 7,8 and 3,4
So still no luck....using the below program crashes the USB port and windows error message pops up: Last USB device not recognized (but it was just fine before using Adafruit_DotStar.h)
I am using Win 11...
I can control the Dot on itsybitsy m4...but not on the Gemma...
#include <Adafruit_DotStar.h> //this is the most up to date version
#define NUMPIXELS 1 // Number of LEDs in strip
#define DATAPIN 3//purple pins colors from gemma pinout pic
#define CLOCKPIN 4
Adafruit_DotStar strip = Adafruit_DotStar(
NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BRG);
void setup() {
strip.begin();
strip.setBrightness(0);
//strip.clear();
strip.show(); // Turn all LEDs off
}
void loop(){}
// An example demonstrating how to control the Adafruit Dot Star RGB LED
// included on board the ItsyBitsy M4 board.
#include <Adafruit_DotStar.h>
// There is only one pixel on the board
#define NUMPIXELS 1
//Use these pin definitions for the ItsyBitsy M4
#define DATAPIN 3
#define CLOCKPIN 4
Adafruit_DotStar strip(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BRG);
void setup() {
strip.begin(); // Initialize pins for output
strip.setBrightness(0);
strip.show(); // Turn all LEDs off ASAP
}
void loop() {
//rainbow(10); // Flowing rainbow cycle along the whole strip
}
Reloaded dotstar lib. No change..still crashes my USB port and dotstar does not change color or turn off on either my trinket M0's and my Gemma M0's.....
Gemma Dot pins: 3,4
Trinket Dot pins: 7,8
But dotstar example in IDE works just fine on M4 express itsybitsy....
For now, I can just physically remove the Dot off the board to save power.....not ideal..but I know it will work..lol