It's Holiday Sale Weekend at Adafruit - use the code ADATY to get 15% off items storewide! Some restrictions apply.
0

Itsy Bitsy M0 Express - Blinking DotStar Light Codes
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Itsy Bitsy M0 Express - Blinking DotStar Light Codes

by msargent on Sat Oct 23, 2021 1:16 pm

Is there a guide to what the colors/blinking DotStar codes mean?

I copied some code from the Gemma M0 for testing some Led Sequin lights on my ItsyBitsy M0.
When I renamed the file to main.py and saved it to the board, it does not behave as I expected.
I do see the DotStar led blink - Green, Red, then quickly flash Blue 4x.

I did modify the code to use pin D10 as the PWM output and pin D11 for the digital led.

?

https://learn.adafruit.com/adafruit-led-sequins/circuitpython-code
Attachments
main.py
(1.25 KiB) Downloaded 2 times

msargent
 
Posts: 12
Joined: Thu Aug 21, 2014 3:13 am

Re: Itsy Bitsy M0 Express - Blinking DotStar Light Codes

by dastels on Sat Oct 23, 2021 2:13 pm

Can you post what you see in the REPL when the code runs? That should give a better idea of what's happening.

If you aren't familiar with using the REPL (or even just the serial connection), see
https://learn.adafruit.com/welcome-to-circuitpython/kattni-connecting-to-the-serial-console
https://learn.adafruit.com/welcome-to-circuitpython/interacting-with-the-serial-console
https://learn.adafruit.com/welcome-to-circuitpython/the-repl

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

Re: Itsy Bitsy M0 Express - Blinking DotStar Light Codes

by msargent on Sat Oct 23, 2021 3:51 pm

Well I won't post what I saw in REPL
But I will admit to having an old, OK - VERY OLD version of CircuitPython on my board ~2.... was missing a few modules required by the code.

Updated my board and the code is working as expected now.

Thank you very much for the help to get me pointed in the right direction.

Trying to work on a giant, pulsing lights, vibrating spider egg triggered by a PIR as a Halloween prop.
My Itsy Bitsy M0 is rather old and since my Trinkets are no longer supported, thought it was time to move up.

Now just need to get the PIR working and then the pins to trigger the vibrating motors, then ...

Bit of a learning curve .)

msargent
 
Posts: 12
Joined: Thu Aug 21, 2014 3:13 am

Re: Itsy Bitsy M0 Express - Blinking DotStar Light Codes

by dastels on Sat Oct 23, 2021 5:07 pm

Sounds cool. Have fun!

Dave

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

Please be positive and constructive with your questions and comments.