DotStar LED won't turn off

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
scd
 
Posts: 15
Joined: Mon Jan 08, 2007 12:55 pm

DotStar LED won't turn off

Post by scd »

Hi,

With the following simple test program I am expecting the onboard LED to turn off, but it glows purple.
How do I turn it off?

Thanks,

>>>>>>>>>>>>>>

#include <Adafruit_DotStar.h>
#include <Keyboard.h>

Adafruit_DotStar strip = Adafruit_DotStar(1, INTERNAL_DS_DATA, INTERNAL_DS_CLK, DOTSTAR_BGR);

void setup() {
Keyboard.begin(); // init USB keyboard
strip.begin(); // init DotStar LED
strip.setPixelColor(0, 0x000000); // LED off
strip.show();
}

void loop() {
delay(100);
}

User avatar
scd
 
Posts: 15
Joined: Mon Jan 08, 2007 12:55 pm

Re: DotStar LED won't turn off

Post by scd »

Nevermind.. It was operator error.. It's working fine..

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”