Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Help with the Adafruit Gemma M0
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Help with the Adafruit Gemma M0

by Shaherfi on Wed Oct 20, 2021 6:24 am

Hi there!

I am trying to use the Adafruit Gemma M0 for a project but for some reason I cant find a way to control the inbuilt dotstar LED that is on the Gemma board. Is there any way I can switch this LED off using code that I can upload to the board using the Arduino IDE? Hope someone can help me with this!

Shaherfi
 
Posts: 2
Joined: Wed Oct 20, 2021 6:20 am

Re: Help with the Adafruit Gemma M0

by dastels on Wed Oct 20, 2021 10:10 am

Working with DotStars is covered here: https://learn.adafruit.com/adafruit-dotstar-leds.

It's on D3 (data) and D4 (clock). See the example her: https://github.com/adafruit/Adafruit_DotStar/blob/master/examples/strandtest/strandtest.ino, but set the NUMPIXELS constant to 1, DATAPIN to 3, and CLOCKPIN to 4.

Dave

dastels
 
Posts: 7915
Joined: Tue Oct 20, 2015 3:22 pm

Re: Help with the Adafruit Gemma M0

by Shaherfi on Wed Oct 20, 2021 11:03 pm

Thank you so much! This is a lifesaver. Tho can I ask, how does one find out that the dostar led is connected to data pin 3 and clock pin 4 ?

Shaherfi
 
Posts: 2
Joined: Wed Oct 20, 2021 6:20 am

Re: Help with the Adafruit Gemma M0

by dastels on Thu Oct 21, 2021 8:58 am

Tutorial guides for boards have a pinout section. See https://learn.adafruit.com/adafruit-gemma-m0 for the Gemmo M0 guide, and specifically see the diagram on https://learn.adafruit.com/adafruit-gemma-m0/pinouts.

Dave

dastels
 
Posts: 7915
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.