Disable LED13 at boot (too fast to be seen)

This commit is contained in:
Pierrick C 2018-09-09 22:55:41 +02:00
parent 97b6d67177
commit 1d02bb7d2f

View File

@ -7,11 +7,11 @@ import storage
jumper = digitalio.DigitalInOut(board.D5) jumper = digitalio.DigitalInOut(board.D5)
jumper.direction = digitalio.Direction.INPUT jumper.direction = digitalio.Direction.INPUT
jumper.pull = digitalio.Pull.UP jumper.pull = digitalio.Pull.UP
led = digitalio.DigitalInOut(board.D13) # led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT # led.direction = digitalio.Direction.OUTPUT
# If the jumper on D5 is connected # If the jumper on D5 is connected
# CircuitPython can write to the drive # CircuitPython can write to the drive
storage.remount("/", jumper.value) storage.remount("/", jumper.value)
led.value = jumper.value # led.value = jumper.value
print("Read-only:{}".format(jumper.value)) print("Read-only: {}".format(jumper.value))