How to control internal dotstar on Feather M0 ?

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
smayo
 
Posts: 8
Joined: Fri Oct 09, 2020 12:43 am

How to control internal dotstar on Feather M0 ?

Post by smayo »

This compiles but doesn't work:
#include <Adafruit_DotStar.h>
#define DATAPIN 7
#define CLOCKPIN 8
Adafruit_DotStar strip = Adafruit_DotStar(1, DATAPIN, CLOCKPIN, DOTSTAR_BGR);
void setup() { strip.begin(); }
void loop() { strip.setPixelColor(0, 0x0000ff); strip.show(); delay(1000); }
I would expect the onboard dotstar to turn blue. Or at least red. It stays at the boot color, purple.

I assume I have the pin numbers wrong but I don't see documentation anywhere. What works?

(The feather might be a feather m0 express if that matters.)

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: How to control internal dotstar on Feather M0 ?

Post by dastels »

If it's a Feather M0 Express (https://www.adafruit.com/product/3403), then it's a NeoPixel, not a DotStar. See https://learn.adafruit.com/adafruit-fea ... el-2835568.

Dave

User avatar
smayo
 
Posts: 8
Joined: Fri Oct 09, 2020 12:43 am

Re: How to control internal dotstar on Feather M0 ?

Post by smayo »

Thanks for the quick reply, but I lied. The board identifies as an Itsy Bitsy M0 Express in the IDE. I've switched the code to NeoPixel but still nothing. What is the correct pin number?

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: How to control internal dotstar on Feather M0 ?

Post by dastels »

Can you post a picture of the board? The ItsyBitsy M0 does have a DotStar. see https://learn.adafruit.com/introducing- ... ar-2989068.

Dave

User avatar
smayo
 
Posts: 8
Joined: Fri Oct 09, 2020 12:43 am

Re: How to control internal dotstar on Feather M0 ?

Post by smayo »

It really is an itsy bitsy (with my vision it's sometimes hard to know what anything is). What are the arguments to Adafruit_DotStar(1, ?, ?, ?);
IMG_3374.jpg
IMG_3374.jpg (141.58 KiB) Viewed 59 times

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: How to control internal dotstar on Feather M0 ?

Post by dastels »

I linked it

Dave

User avatar
smayo
 
Posts: 8
Joined: Fri Oct 09, 2020 12:43 am

Re: How to control internal dotstar on Feather M0 ?

Post by smayo »

Thank you! Working now.

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

Return to “Feather - Adafruit's lightweight platform”