File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed
CircuitPython_Essentials/CircuitPython_Logger
Introducing_Gemma_M0/Gemma_Logger_boot Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 21
21
IO .direction = digitalio .Direction .INPUT
22
22
IO .pull = digitalio .Pull .UP
23
23
24
- if IO .value : # No connection
25
- storage .remount ('/' , False ) # Remount storage as read/write for painter
24
+ if IO .value : # No connection
25
+ storage .remount ('/' , readonly = False ) # Remount storage as read/write for painter
Original file line number Diff line number Diff line change 20
20
switch .pull = digitalio .Pull .UP
21
21
22
22
# If the switch pin is connected to ground CircuitPython can write to the drive
23
- storage .remount ("/" , switch .value )
23
+ storage .remount ("/" , readonly = switch .value )
Original file line number Diff line number Diff line change 13
13
switch .pull = digitalio .Pull .UP
14
14
15
15
# If the switch pin is connected to ground CircuitPython can write to the drive
16
- storage .remount ("/" , switch .value )
16
+ storage .remount ("/" , readonly = switch .value )
Original file line number Diff line number Diff line change 11
11
switch .pull = digitalio .Pull .UP
12
12
13
13
# If the switch pin is connected to ground CircuitPython can write to the drive
14
- storage .remount ("/" , switch .value )
14
+ storage .remount ("/" , readonly = switch .value )
Original file line number Diff line number Diff line change @@ -28,4 +28,4 @@ def read_buttons():
28
28
print ("OS has write access to CircuitPython drive" )
29
29
else :
30
30
print ("CircuitPython has write access to drive" )
31
- storage .remount ("/" , readonly )
31
+ storage .remount ("/" , readonly = readonly )
Original file line number Diff line number Diff line change 12
12
13
13
# If the D0 is connected to ground with a wire
14
14
# CircuitPython can write to the drive
15
- storage .remount ("/" , switch .value )
15
+ storage .remount ("/" , readonly = switch .value )
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def get_current_toml_file(enumerated_files):
45
45
# Erase settings.toml then write the contents of the new settings.toml file
46
46
def change_toml_file (toml_file ):
47
47
try :
48
- storage .remount ("/" , False )
48
+ storage .remount ("/" , readonly = False )
49
49
with open ("settings.toml" , "w" ) as settings :
50
50
settings .write ("" )
51
51
with open ("settings.toml" , "w" ) as settings , open (toml_file ) as f :
You can’t perform that action at this time.
0 commit comments