circuitpython/esp8266/scripts/_boot.py

15 lines
288 B
Python

import uos
import builtins
from flashbdev import bdev
try:
if bdev:
vfs = uos.VfsFat(bdev, "")
except OSError:
import inisetup
inisetup.check_bootsec()
print("Performing initial setup")
uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev, "")
inisetup.wifi()