But it appears that there's no file system:
REPL
Code: Select all
MPY: soft reboot
could not find module '_boot.py'
MicroPython v1.12-5-g42e45bd69 on 2019-12-24; ESP32 module with ESP32
Type "help()" for more information.
>>> help('modules')
__main__ freesans20 uarray urandom
_onewire gc ubinascii ure
_thread glcdfont ubluetooth uselect
_webrepl hx711 ucollections usocket
btree jsondb ucryptolib ussl
builtins machine uctypes ustruct
cmath math uerrno utime
esp micropython uhashlib utimeq
esp32 network uhashlib uwebsocket
fapac24 sh uheapq uzlib
flashbdev sys uio wget
font10 tt14 ujson wlan
font6 tt24 umqtt_simple www
framebuf tt32 uos
Plus any modules on the filesystem
>>>
>>> import os
>>> os.listdir()
[]
>>> os.mkdir('lib')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 17] EEXIST
>>> os.mkdir('test')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 17] EEXIST
Code: Select all
/Volumes/dev/uPython/flash> cp test/moziot/moziot.py /pyboard; repl ~ import moziot
timed out or error in transfer to remote
Entering REPL. Use Control-X to exit.
repl_serial_to_stdout dev = <rshell.main.DeviceSerial object at 0x105284048>
alse
>