We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5856c18 commit 45bb4bfCopy full SHA for 45bb4bf
m5stack/libs/boot_option.py
@@ -0,0 +1,12 @@
1
+import esp32
2
+
3
4
+def set_boot_option(option):
5
+ nvs = esp32.NVS("uiflow")
6
+ nvs.set_u8("boot_option", option)
7
+ nvs.commit()
8
9
10
+def get_boot_option():
11
12
+ return nvs.get_u8("boot_option")
m5stack/libs/manifest.py
@@ -9,5 +9,6 @@
include("unit/manifest.py")
# freeze("$(MPY_DIR)/../m5stack/libs/unit")
include("utility/manifest.py")
+module("boot_option.py")
13
module("label_plus.py")
14
module("m5camera.py")
0 commit comments