File System Read only error

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
AstroGuy
 
Posts: 14
Joined: Mon Dec 15, 2014 1:42 pm

File System Read only error

Post by AstroGuy »

I've done a search and what I found was useless so here we go...

Using an rp2040 feather with the following code.

Code: Select all

def saveDefault():
	global cntD, lgthD, pseD, cnt, lgth, pse
	
	cntD=cnt
	lgthD=lgth
	pseD=pse
	
	f = open("count.txt", "w")
	f.write(str(cnt))
	f.write("\r")
	f.write(str(lgth))
	f.write("\r")
	f.write(str(pse))
	f.close()
Getting the OSError: [Errno 30] Read-only filesystem.

please give me some guidance and pretend I know absolutely nothing and have an IQ of 10

Thanks
Last edited by dastels on Sat Aug 27, 2022 7:41 pm, edited 1 time in total.
Reason: Add code tag

User avatar
dastels
 
Posts: 15656
Joined: Tue Oct 20, 2015 3:22 pm

Re: File System Read only error

Post by dastels »


Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”