Adafruit ESP32-S3 Manual page 166

Tft feather
Table of Contents

Advertisement

Simply connect the STEMMA QT cable from the STEMMA QT port on your board to th
e STEMMA QT port on the MCP9808.
The boot.py File
The filesystem will NOT automatically be set to read-only on creation of this file!
You'll still be able to edit files on CIRCUITPY after saving this boot.py.
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
# SPDX-License-Identifier: MIT
"""
CircuitPython Essentials Storage CP Filesystem boot.py file
"""
import time
import board
import digitalio
import storage
import neopixel
pixel = neopixel.NeoPixel(board.NEOPIXEL, 1)
button = digitalio.DigitalInOut(board.BUTTON)
button.switch_to_input(pull=digitalio.Pull.UP)
# Turn the NeoPixel white for one second to indicate when to press the boot button.
pixel.fill((255, 255, 255))
time.sleep(1)
# If the button is connected to ground, the filesystem is writable by CircuitPython
storage.remount("/", readonly=button.value)
The
storage.remount()
argument refers to the read/write state of CircuitPython. It does NOT refer to the read/
write state of your computer.
When the button is pressed, it returns
set to the
of the button. When the
value
only to CircuitPython (and writable by your computer). When the
IRCUITPY drive is writable by CircuitPython (and read-only by your computer).
©Adafruit Industries
command has a
readonly
. The
False
value=True
keyword argument. This
argument in boot.py is
readonly
, the CIRCUITPY drive is read-
value=False
, the C
Page 166 of 263

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S3 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF