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()
please give me some guidance and pretend I know absolutely nothing and have an IQ of 10
Thanks