MicroPython stuff

This commit is contained in:
2024-05-16 20:38:19 +03:00
parent a8e26be242
commit 60ba2c59e7
17 changed files with 478 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import os
print('Listing filesystem...')
print(os.listdir(), '\n')
print('Write data...')
with open('data.txt', 'w') as f:
count = f.write('ololo\n')
print('Write', count, 'bytes')
print('Read data...')
with open('data.txt', 'r') as f:
print('Data:', f.read())