File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
import gc
2
2
gc .threshold ((gc .mem_free () + gc .mem_alloc ()) // 4 )
3
- import uos
4
3
from flashbdev import bdev
4
+ import storage
5
5
6
6
try :
7
7
if bdev :
8
- uos .mount (bdev , '/' )
8
+ vfs = storage .VfsFat (bdev )
9
+ storage .mount (vfs , '/' )
9
10
except OSError :
10
11
import inisetup
11
12
inisetup .setup ()
Original file line number Diff line number Diff line change 1
- import uos
2
- import network
3
1
from flashbdev import bdev
2
+ import network
3
+ import storage
4
4
5
5
def wifi ():
6
6
import ubinascii
@@ -36,9 +36,9 @@ def setup():
36
36
check_bootsec ()
37
37
print ("Performing initial setup" )
38
38
wifi ()
39
- uos .VfsFat .mkfs (bdev )
40
- vfs = uos .VfsFat (bdev )
41
- uos .mount (vfs , '/' )
39
+ storage .VfsFat .mkfs (bdev )
40
+ vfs = storage .VfsFat (bdev )
41
+ storage .mount (vfs , '/' )
42
42
with open ("boot.py" , "w" ) as f :
43
43
f .write ("""\
44
44
# This file is executed on every boot (including wake-boot from deepsleep)
Original file line number Diff line number Diff line change 1
1
import sys
2
- #import uos as os
3
2
import os
4
3
import machine
5
4
You can’t perform that action at this time.
0 commit comments