kopia lustrzana https://github.com/micropython/micropython
21 wiersze
320 B
Python
21 wiersze
320 B
Python
import gc
|
|
import vfs
|
|
from esp32 import Partition
|
|
from flashbdev import bdev
|
|
|
|
if mapfs := Partition.find(Partition.TYPE_DATA, label="mapfs"):
|
|
import sys
|
|
|
|
sys.path.insert(0, "/mapfs")
|
|
del mapfs
|
|
|
|
try:
|
|
if bdev:
|
|
vfs.mount(bdev, "/")
|
|
except OSError:
|
|
import inisetup
|
|
|
|
inisetup.setup()
|
|
|
|
gc.collect()
|