#I thought you attached your own button
1 messages · Page 1 of 1 (latest)
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?
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
Re-reading https://learn.adafruit.com/circuitpython-essentials/circuitpython-storage: The docs talk about installing a switch, but that's not my goal. Ultimately, I'd like to detect plugged-into-usb and load the file system based on that (writable by rp2040 when not plugged in)
That looks perfect! Thanks!
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
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.
got it, glad to help! will be afk for a while
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)