Delete unneed print command
This commit is contained in:
parent
7aa786493b
commit
2a1aae6da8
@ -3,15 +3,14 @@
|
|||||||
import board
|
import board
|
||||||
import digitalio
|
import digitalio
|
||||||
import storage
|
import storage
|
||||||
|
|
||||||
switch = digitalio.DigitalInOut(board.D5)
|
switch = digitalio.DigitalInOut(board.D5)
|
||||||
switch.direction = digitalio.Direction.INPUT
|
switch.direction = digitalio.Direction.INPUT
|
||||||
switch.pull = digitalio.Pull.UP
|
switch.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 D0 is connected to ground with a wire
|
# If the D0 is connected to ground with a wire
|
||||||
# CircuitPython can write to the drive
|
# CircuitPython can write to the drive
|
||||||
storage.remount("/", switch.value)
|
storage.remount("/", switch.value)
|
||||||
print("Readonly : {}".format(switch.value))
|
led.value = switch.value
|
||||||
led.value = switch.value
|
|
||||||
|
Loading…
Reference in New Issue
Block a user