Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dos
flow3r firmware
Commits
79d9f369
Verified
Commit
79d9f369
authored
1 year ago
by
dos
Browse files
Options
Downloads
Patches
Plain Diff
py,st3m: Call media.stop() when quitting an application
parent
4a4c6d0e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_payload/st3m/run.py
+2
-1
2 additions, 1 deletion
python_payload/st3m/run.py
with
2 additions
and
1 deletion
python_payload/st3m/run.py
+
2
−
1
View file @
79d9f369
...
@@ -23,7 +23,7 @@ from st3m import settings_menu as settings, logging, processors, wifi
...
@@ -23,7 +23,7 @@ from st3m import settings_menu as settings, logging, processors, wifi
from
st3m
import
led_patterns
from
st3m
import
led_patterns
import
st3m.wifi
import
st3m.wifi
import
captouch
,
audio
,
leds
,
gc
,
sys_buttons
,
sys_display
,
sys_mode
import
captouch
,
audio
,
leds
,
gc
,
sys_buttons
,
sys_display
,
sys_mode
,
media
import
os
import
os
import
machine
import
machine
...
@@ -77,6 +77,7 @@ class ApplicationMenu(SimpleMenu):
...
@@ -77,6 +77,7 @@ class ApplicationMenu(SimpleMenu):
sys_display
.
set_mode
(
0
)
sys_display
.
set_mode
(
0
)
leds
.
set_slew_rate
(
100
)
leds
.
set_slew_rate
(
100
)
led_patterns
.
set_menu_colors
()
led_patterns
.
set_menu_colors
()
media
.
stop
()
def
on_enter
(
self
,
vm
:
Optional
[
ViewManager
])
->
None
:
def
on_enter
(
self
,
vm
:
Optional
[
ViewManager
])
->
None
:
super
().
on_enter
(
vm
)
super
().
on_enter
(
vm
)
...
...
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