#circuitpython LED blinking problem

1 messages · Page 1 of 1 (latest)

ancient palm
#

Hi! I just got my raspberry pi pico and installed circuitpython on it. My question is, why does and empty code.py file make the LED blink? It blinks every time the code gets reloaded. Because every time i press reload manually, it blinks. But it shouldn't because it is literally empty.

gusty swift
#

do you mean the status led?

ancient palm
#

Well there is only one LED

deep ivy
#

it indicates that the program finished correctly

#

if there was an error, it would blink differently

lime moon
#

CircuitPython RGB Status Light

Once started, CircuitPython will blink a pattern every 5 seconds when no user code is running to indicate why the code stopped:

1 GREEN blink: Code finished without error.
2 RED blinks: Code ended due to an exception. Check the serial console for details.
3 YELLOW blinks: CircuitPython is in safe mode. No user code was run. Check the serial console for safe mode reason.
When in the REPL, CircuitPython will set the status LED to WHITE.

Adafruit Learning System

New to CircuitPython? This is the place to start.