mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
To start with, the critical scripts _boot.py and flashbdev.py are frozen to improve performance and reduce RAM consumption. Saves about 1000 bytes of heap RAM for a bare boot with filesystem.
10 lines
155 B
Python
10 lines
155 B
Python
import uos
|
|
from flashbdev import bdev
|
|
|
|
try:
|
|
if bdev:
|
|
vfs = uos.VfsFat(bdev, "")
|
|
except OSError:
|
|
import inisetup
|
|
vfs = inisetup.setup()
|