File tree Expand file tree Collapse file tree
CircuitPython_Essentials/CircuitPython_Logger
Introducing_Gemma_M0/Gemma_Logger_boot Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121IO .direction = digitalio .Direction .INPUT
2222IO .pull = digitalio .Pull .UP
2323
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 2020switch .pull = digitalio .Pull .UP
2121
2222# 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 1313switch .pull = digitalio .Pull .UP
1414
1515# 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 1111switch .pull = digitalio .Pull .UP
1212
1313# 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():
2828 print ("OS has write access to CircuitPython drive" )
2929else :
3030 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 1212
1313# If the D0 is connected to ground with a wire
1414# 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):
4545# Erase settings.toml then write the contents of the new settings.toml file
4646def change_toml_file (toml_file ):
4747 try :
48- storage .remount ("/" , False )
48+ storage .remount ("/" , readonly = False )
4949 with open ("settings.toml" , "w" ) as settings :
5050 settings .write ("" )
5151 with open ("settings.toml" , "w" ) as settings , open (toml_file ) as f :
You can’t perform that action at this time.
0 commit comments