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
d45ef187
Commit
d45ef187
authored
Oct 5, 2023
by
dos
Committed by
dos
Oct 6, 2023
Browse files
Options
Downloads
Patches
Plain Diff
py,st3m: settings: Fix tunable types
Someone has been a big fan of strings.
parent
efdf3323
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/settings.py
+22
-22
22 additions, 22 deletions
python_payload/st3m/settings.py
with
22 additions
and
22 deletions
python_payload/st3m/settings.py
+
22
−
22
View file @
d45ef187
...
@@ -171,7 +171,7 @@ class NumberTunable(UnaryTunable):
...
@@ -171,7 +171,7 @@ class NumberTunable(UnaryTunable):
NumberTunable is a UnaryTunable that has a numeric value
NumberTunable is a UnaryTunable that has a numeric value
"""
"""
def
__init__
(
self
,
name
:
str
,
key
:
int
|
float
,
default
:
Optional
[
str
])
->
None
:
def
__init__
(
self
,
name
:
str
,
key
:
str
,
default
:
Optional
[
int
|
float
])
->
None
:
super
().
__init__
(
name
,
key
,
default
)
super
().
__init__
(
name
,
key
,
default
)
def
press
(
self
,
vm
:
Optional
[
"
ViewManager
"
])
->
None
:
def
press
(
self
,
vm
:
Optional
[
"
ViewManager
"
])
->
None
:
...
@@ -208,72 +208,72 @@ str_wifi_ssid = StringTunable("WiFi SSID", "system.wifi.ssid", "Camp2023-open")
...
@@ -208,72 +208,72 @@ str_wifi_ssid = StringTunable("WiFi SSID", "system.wifi.ssid", "Camp2023-open")
str_wifi_psk
=
ObfuscatedStringTunable
(
"
WiFi Password
"
,
"
system.wifi.psk
"
,
None
)
str_wifi_psk
=
ObfuscatedStringTunable
(
"
WiFi Password
"
,
"
system.wifi.psk
"
,
None
)
str_hostname
=
StringTunable
(
"
Hostname
"
,
"
system.hostname
"
,
"
flow3r
"
)
str_hostname
=
StringTunable
(
"
Hostname
"
,
"
system.hostname
"
,
"
flow3r
"
)
num_volume_step_db
=
String
Tunable
(
num_volume_step_db
=
Number
Tunable
(
"
Volume Change dB
"
,
"
system.audio.volume_step_dB
"
,
1.5
"
Volume Change dB
"
,
"
system.audio.volume_step_dB
"
,
1.5
)
)
num_volume_repeat_step_db
=
String
Tunable
(
num_volume_repeat_step_db
=
Number
Tunable
(
"
Volume Repeat Change dB
"
,
"
system.audio.volume_repeat_step_dB
"
,
2.5
"
Volume Repeat Change dB
"
,
"
system.audio.volume_repeat_step_dB
"
,
2.5
)
)
num_volume_repeat_wait_ms
=
String
Tunable
(
num_volume_repeat_wait_ms
=
Number
Tunable
(
"
Volume Repeat Wait Time ms
"
,
"
system.audio.volume_repeat_wait_ms
"
,
800
"
Volume Repeat Wait Time ms
"
,
"
system.audio.volume_repeat_wait_ms
"
,
800
)
)
num_volume_repeat_ms
=
String
Tunable
(
num_volume_repeat_ms
=
Number
Tunable
(
"
Volume Repeat Time ms
"
,
"
system.audio.volume_repeat_ms
"
,
300
"
Volume Repeat Time ms
"
,
"
system.audio.volume_repeat_ms
"
,
300
)
)
num_speaker_startup_volume_db
=
String
Tunable
(
num_speaker_startup_volume_db
=
Number
Tunable
(
"
Speaker Startup Volume dB
"
,
"
system.audio.speaker_startup_volume_dB
"
,
-
10
"
Speaker Startup Volume dB
"
,
"
system.audio.speaker_startup_volume_dB
"
,
-
10
)
)
num_headphones_startup_volume_db
=
String
Tunable
(
num_headphones_startup_volume_db
=
Number
Tunable
(
"
Headphones Startup Volume dB
"
,
"
system.audio.headphones_startup_volume_dB
"
,
-
10
"
Headphones Startup Volume dB
"
,
"
system.audio.headphones_startup_volume_dB
"
,
-
10
)
)
num_headphones_min_db
=
String
Tunable
(
num_headphones_min_db
=
Number
Tunable
(
"
Min Headphone Volume dB
"
,
"
system.audio.headphones_min_dB
"
,
-
45
"
Min Headphone Volume dB
"
,
"
system.audio.headphones_min_dB
"
,
-
45
)
)
num_speaker_min_db
=
String
Tunable
(
num_speaker_min_db
=
Number
Tunable
(
"
Min Speaker Volume dB
"
,
"
system.audio.speaker_min_dB
"
,
-
40
"
Min Speaker Volume dB
"
,
"
system.audio.speaker_min_dB
"
,
-
40
)
)
num_headphones_max_db
=
String
Tunable
(
num_headphones_max_db
=
Number
Tunable
(
"
Max Headphone Volume dB
"
,
"
system.audio.headphones_max_dB
"
,
3
"
Max Headphone Volume dB
"
,
"
system.audio.headphones_max_dB
"
,
3
)
)
num_speaker_max_db
=
String
Tunable
(
num_speaker_max_db
=
Number
Tunable
(
"
Max Speaker Volume dB
"
,
"
system.audio.speaker_max_dB
"
,
14
"
Max Speaker Volume dB
"
,
"
system.audio.speaker_max_dB
"
,
14
)
)
onoff_speaker_eq_on
=
String
Tunable
(
"
Speaker EQ On
"
,
"
system.audio.speaker_eq_on
"
,
True
)
onoff_speaker_eq_on
=
OnOff
Tunable
(
"
Speaker EQ On
"
,
"
system.audio.speaker_eq_on
"
,
True
)
onoff_headset_mic_allowed
=
String
Tunable
(
onoff_headset_mic_allowed
=
OnOff
Tunable
(
"
Headset Mic Allowed
"
,
"
system.audio.headset_mic_allowed
"
,
True
"
Headset Mic Allowed
"
,
"
system.audio.headset_mic_allowed
"
,
True
)
)
onoff_onboard_mic_allowed
=
String
Tunable
(
onoff_onboard_mic_allowed
=
OnOff
Tunable
(
"
Onboard Mic Allowed
"
,
"
system.audio.onboard_mic_allowed
"
,
True
"
Onboard Mic Allowed
"
,
"
system.audio.onboard_mic_allowed
"
,
True
)
)
onoff_line_in_allowed
=
String
Tunable
(
onoff_line_in_allowed
=
OnOff
Tunable
(
"
Line In Allowed
"
,
"
system.audio.line_in_allowed
"
,
True
"
Line In Allowed
"
,
"
system.audio.line_in_allowed
"
,
True
)
)
onoff_onboard_mic_to_speaker_allowed
=
String
Tunable
(
onoff_onboard_mic_to_speaker_allowed
=
OnOff
Tunable
(
"
Onboard Mic To Speaker Allowed
"
,
"
Onboard Mic To Speaker Allowed
"
,
"
system.audio.onboard_mic_to_speaker_allowed
"
,
"
system.audio.onboard_mic_to_speaker_allowed
"
,
False
,
False
,
)
)
num_headset_mic_gain_db
=
String
Tunable
(
num_headset_mic_gain_db
=
Number
Tunable
(
"
Headset Mic Gain dB
"
,
"
system.audio.headset_mic_gain_dB
"
,
0
"
Headset Mic Gain dB
"
,
"
system.audio.headset_mic_gain_dB
"
,
0
)
)
num_onboard_mic_gain_db
=
String
Tunable
(
num_onboard_mic_gain_db
=
Number
Tunable
(
"
Onboard Mic Gain dB
"
,
"
system.audio.onboard_mic_gain_dB
"
,
0
"
Onboard Mic Gain dB
"
,
"
system.audio.onboard_mic_gain_dB
"
,
0
)
)
num_line_in_gain_db
=
String
Tunable
(
num_line_in_gain_db
=
Number
Tunable
(
"
Line In Gain dB
"
,
"
system.audio.line_in_gain_dB
"
,
0
"
Line In Gain dB
"
,
"
system.audio.line_in_gain_dB
"
,
0
)
)
num_display_brightness
=
String
Tunable
(
num_display_brightness
=
Number
Tunable
(
"
Display Brightness
"
,
"
system.appearance.display_brightness
"
,
100
"
Display Brightness
"
,
"
system.appearance.display_brightness
"
,
100
)
)
num_leds_brightness
=
String
Tunable
(
num_leds_brightness
=
Number
Tunable
(
"
LED Brightness
"
,
"
system.appearance.leds_brightness
"
,
70
"
LED Brightness
"
,
"
system.appearance.leds_brightness
"
,
70
)
)
num_leds_speed
=
String
Tunable
(
"
LED Speed
"
,
"
system.appearance.leds_speed
"
,
235
)
num_leds_speed
=
Number
Tunable
(
"
LED Speed
"
,
"
system.appearance.leds_speed
"
,
235
)
onoff_leds_random_menu
=
OnOffTunable
(
onoff_leds_random_menu
=
OnOffTunable
(
"
Random Menu LEDs
"
,
"
system.appearance.leds_random_menu
"
,
True
"
Random Menu LEDs
"
,
"
system.appearance.leds_random_menu
"
,
True
)
)
...
...
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