#I thought you attached your own button

1 messages · Page 1 of 1 (latest)

shy thistle
#

Me, on the RP2040? No, I'm just trying to get the file system to be writable. Do I have to install a button to write to the filesystem?

toxic aspen
#

The point is that sometimes you want to be able to make the fileystem writeable by CircuitPython, and sometimes you want the host computer to be able to write it. You add a pushbutton (or it could be a switch) so that you can flip back and forth when restarting. The reason to do this is that if you always did the remount, you wouldn't be able to edit any files on CIRCUITPY. So you have to be able to enable/disable the choice

shy thistle
shy thistle
#

That looks perfect! Thanks!

toxic aspen
#

or .serial_connected. But the problem with basing the choice solely on that is that you can't debug your program anymore by having it print things that you can see, since when you're writing, you are not connected. So at least temporarily you may want to set up a button or switch

shy thistle
#

As soon as I get writable, I'll have a log file. That's preferred anyway, I want everything working headless. Sample readings go in one file, logs in another.

toxic aspen
#

got it, glad to help! will be afk for a while

shy thistle
#

Hey! Checking back in. Thanks for all your help. I've got something somewhat working, but not consistently. I want to learn more about the bootstrap process, when boot.py is executed and when/how 'supervisor' is initialized. I can get into write mode, but I can't get back to RO when USB is plugged in.

#

(without using safe mode. I figured that out, but it's annoying for active develpoment)