Help with the Adafruit Gemma M0

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Shaherfi
 
Posts: 2
Joined: Wed Oct 20, 2021 6:20 am

Help with the Adafruit Gemma M0

Post by Shaherfi »

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!

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

Re: Help with the Adafruit Gemma M0

Post by dastels »

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_Do ... ndtest.ino, but set the NUMPIXELS constant to 1, DATAPIN to 3, and CLOCKPIN to 4.

Dave

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

Re: Help with the Adafruit Gemma M0

Post by Shaherfi »

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 ?

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

Re: Help with the Adafruit Gemma M0

Post by dastels »

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

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

Return to “Microcontrollers”