File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
internal_filesystem/builtin/apps/com.micropythonos.about/assets Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ def onCreate(self):
2222 label4 .set_text (f"sys.platform: { sys .platform } " )
2323 try :
2424 print ("Trying to find out additional board info, not available on every platform..." )
25- import machine
2625 label5 = lv .label (screen )
2726 label5 .set_text ("" ) # otherwise it will show the default "Text" if there's an exception below
27+ import machine
2828 label5 .set_text (f"machine.freq: { machine .freq ()} " )
2929 label6 = lv .label (screen )
3030 label6 .set_text (f"machine.unique_id(): { machine .unique_id ()} " )
@@ -34,4 +34,15 @@ def onCreate(self):
3434 label8 .set_text (f"machine.reset_cause(): { machine .reset_cause ()} " )
3535 except Exception as e :
3636 print (f"Additional board info got exception: { e } " )
37+ try :
38+ label9 = lv .label (screen )
39+ label9 .set_text ("" ) # otherwise it will show the default "Text" if there's an exception below
40+ from esp32 import Partition
41+ current = Partition (Partition .RUNNING )
42+ label9 .set_text (f"Partition.RUNNING: { current } " )
43+ next_partition = current .get_next_update ()
44+ label10 = lv .label (screen )
45+ label10 .set_text (f"Next update partition: { next_partition } " )
46+ except Exception as e :
47+ print (f"Partition info got exception: { e } " )
3748 self .setContentView (screen )
You can’t perform that action at this time.
0 commit comments