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
6641f497
Commit
6641f497
authored
5 months ago
by
Václav Jelínek
Browse files
Options
Downloads
Patches
Plain Diff
Add FW version to constants and menu
parent
bf683735
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
+0
-1
0 additions, 1 deletion
lib/menu_display.py
main/main.py
+2
-2
2 additions, 2 deletions
main/main.py
with
2 additions
and
3 deletions
lib/menu_display.py
+
0
−
1
View file @
6641f497
...
...
@@ -105,7 +105,6 @@ def display_fill_fw_version(robot, fw_version):
robot
.
display
.
fill
(
0
)
robot
.
display
.
centered_text
(
"
Firmware
"
,
DISPLAY_TITLE_POS
,
1
)
robot
.
display
.
centered_text
(
fw_version
,
DISPLAY_PROG_POS
,
1
)
robot
.
display
.
show
()
# Show program error on display
def
display_show_error
(
robot
):
...
...
This diff is collapsed.
Click to expand it.
main/main.py
+
2
−
2
View file @
6641f497
...
...
@@ -12,7 +12,7 @@ import micropython
import
gc
import
menu_programs
from
lib.robot_consts
import
Button
,
Port
from
lib.robot_consts
import
Button
,
Port
,
FW_VERSION
from
lib.menu_display
import
*
try
:
from
config
import
esp_default_name
,
battery_multiplier
...
...
@@ -325,7 +325,7 @@ def main():
menu_debounce
=
1
continue
elif
current_menu
==
Menu
.
FW_VERSION
:
display_fill_fw_version
(
robot
,
robot
.
fw_version
)
display_fill_fw_version
(
robot
,
FW_VERSION
)
display_fill_battery
(
robot
,
bat_voltage
)
robot
.
display
.
show
()
...
...
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