boot.py
1 # SPDX-FileCopyrightText: 2017 Limor Fried for Adafruit Industries 2 # 3 # SPDX-License-Identifier: MIT 4 5 import digitalio 6 import board 7 import storage 8 9 switch = digitalio.DigitalInOut(board.D7) # For Circuit Playground Express 10 switch.direction = digitalio.Direction.INPUT 11 switch.pull = digitalio.Pull.UP 12 13 # If the switch pin is connected to ground CircuitPython can write to the drive 14 storage.remount("/", switch.value)