CircuitPython script runs then stops with led pattern that I

Adafruit's tiny microcontroller platform. 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
rfender
 
Posts: 6
Joined: Mon Aug 30, 2021 10:51 pm

CircuitPython script runs then stops with led pattern that I

Post by rfender »

I have the simple script below to blink an external led which works. But after a few seconds of running, the script stops and the dotstar blinks the following pattern and stops on (white/purple?). What does that pattern of dotstar blinks mean?

dotstar bink pattern:
green
orange
fast orange
fast blue

green
orange
fast orange
fast blue

green
white (maybe purple) # this is where is stops

circuitpython script:

Code: Select all

import board
import digitalio
import time

extLed = digitalio.DigitalInOut(board.D2)
extLed.direction = digitalio.Direction.OUTPUT

while True:
    extLed.value = True
    time.sleep(1)
    extLed.value = False
    time.sleep(1)
Mac os x 10.13.6
VS Code running CircuitPython extension 0.1.15
No serial port running (haven't gotten that part of the extension working yet)

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

Re: CircuitPython script runs then stops with led pattern th

Post by dastels »

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-c ... al-console
https://learn.adafruit.com/welcome-to-c ... al-console
https://learn.adafruit.com/welcome-to-c ... n/the-repl

Dave

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

Return to “Trinket ATTiny, Trinket M0”