Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Open-Cube FW
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Cube
Open-Cube FW
Commits
44486b67
Commit
44486b67
authored
5 months ago
by
Václav Jelínek
Browse files
Options
Downloads
Patches
Plain Diff
Add option to start bootloader from menu
parent
40e43b2f
No related branches found
Branches containing commit
No related tags found
1 merge request
!12
Major update of menu visuals and example programs
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/menu_display.py
+6
-0
6 additions, 0 deletions
lib/menu_display.py
main/main.py
+5
-0
5 additions, 0 deletions
main/main.py
with
11 additions
and
0 deletions
lib/menu_display.py
+
6
−
0
View file @
44486b67
...
...
@@ -122,4 +122,10 @@ def display_show_program(robot):
robot
.
display
.
fill
(
0
)
robot
.
display
.
centered_text
(
'
Program
'
,
20
,
1
)
robot
.
display
.
centered_text
(
'
running
'
,
30
,
1
)
robot
.
display
.
show
()
def
display_show_boot
(
robot
):
robot
.
display
.
fill
(
0
)
robot
.
display
.
centered_text
(
'
Load
'
,
20
,
1
)
robot
.
display
.
centered_text
(
'
firmware
'
,
30
,
1
)
robot
.
display
.
show
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
main/main.py
+
5
−
0
View file @
44486b67
...
...
@@ -10,6 +10,8 @@ import os
import
sys
import
micropython
import
gc
import
machine
import
menu_programs
from
lib.robot_consts
import
Button
,
Port
,
FW_VERSION
...
...
@@ -333,6 +335,9 @@ def main():
menu_debounce
=
1
continue
elif
current_menu
==
Menu
.
FW_VERSION
:
if
ok_pressed
:
display_show_boot
(
robot
)
machine
.
bootloader
()
display_fill_fw_version
(
robot
,
FW_VERSION
)
display_fill_battery
(
robot
,
bat_voltage
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment