kopia lustrzana https://github.com/micropython/micropython-lib
Merge e22db4ab5a
into 68e0dfce0a
commit
ade249005c
|
@ -28,10 +28,10 @@ def sdtest():
|
|||
print(n, "bytes written")
|
||||
n = f.write(lines)
|
||||
print(n, "bytes written")
|
||||
|
||||
with open(fn, "r") as f:
|
||||
result1 = f.read()
|
||||
print(len(result1), "bytes read")
|
||||
os.remove(fn)
|
||||
|
||||
fn = "/fc/rats1.txt"
|
||||
print()
|
||||
|
@ -39,10 +39,10 @@ def sdtest():
|
|||
with open(fn, "w") as f:
|
||||
n = f.write(short) # one block
|
||||
print(n, "bytes written")
|
||||
|
||||
with open(fn, "r") as f:
|
||||
result2 = f.read()
|
||||
print(len(result2), "bytes read")
|
||||
os.remove(fn)
|
||||
|
||||
os.umount("/fc")
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue