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.)
How to control internal dotstar on Feather M0 ?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- smayo
- Posts: 8
- Joined: Fri Oct 09, 2020 12:43 am
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: How to control internal dotstar on Feather M0 ?
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
Dave
- smayo
- Posts: 8
- Joined: Fri Oct 09, 2020 12:43 am
Re: How to control internal dotstar on Feather M0 ?
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?
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: How to control internal dotstar on Feather M0 ?
Can you post a picture of the board? The ItsyBitsy M0 does have a DotStar. see https://learn.adafruit.com/introducing- ... ar-2989068.
Dave
Dave
- smayo
- Posts: 8
- Joined: Fri Oct 09, 2020 12:43 am
Re: How to control internal dotstar on Feather M0 ?
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, ?, ?, ?);
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: How to control internal dotstar on Feather M0 ?
I linked it
Dave
Dave
- smayo
- Posts: 8
- Joined: Fri Oct 09, 2020 12:43 am
Re: How to control internal dotstar on Feather M0 ?
Thank you! Working now.
Please be positive and constructive with your questions and comments.