EasyManua.ls Logo

Adafruit ESP32-S3 - code.py Restarts Constantly; CircuitPython RGB Status Light; CircuitPython 7.0.0 and Later

Adafruit ESP32-S3
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
be sure to check that you haven't simply missed the serial messages due to serial
output panel height.
code.py Restarts Constantly
CircuitPython will restart code.py if you or your computer writes to something on the
CIRCUITPY drive. This feature is called auto-reload, and lets you test a change to your
program immediately.
Some utility programs, such as backup, anti-virus, or disk-checking apps, will write to
the CIRCUITPY as part of their operation. Sometimes they do this very frequently,
causing constant restarts.
Acronis True Image and related Acronis programs on Windows are known to cause
this problem. It is possible to prevent this by disabling the "()Acronis Managed
Machine Service Mini"().
If you cannot stop whatever is causing the writes, you can disable auto-reload by
putting this code in boot.py or code.py:
import supervisor
supervisor.disable_autoreload()
CircuitPython RGB Status Light
Nearly all CircuitPython-capable boards have a single NeoPixel or DotStar RGB LED
on the board that indicates the status of CircuitPython. A few boards designed before
CircuitPython existed, such as the Feather M0 Basic, do not.
Circuit Playground Express and Circuit Playground Bluefruit have multiple RGB LEDs,
but do NOT have a status LED. The LEDs are all green when in the bootloader. In
versions before 7.0.0, they do NOT indicate any status while running CircuitPython.
CircuitPython 7.0.0 and Later
The status LED blinks were changed in CircuitPython 7.0.0 in order to save battery
power and simplify the blinks. These blink patterns will occur on single color LEDs
when the board does not have any RGB LEDs. Speed and blink count also vary for
this reason.
©Adafruit Industries Page 102 of 263

Table of Contents

Related product manuals