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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Commits
7699a286
Commit
7699a286
authored
1 year ago
by
moon2
Browse files
Options
Downloads
Patches
Plain Diff
format
parent
97fe9f85
No related branches found
No related tags found
1 merge request
!534
Blm upgrades 5 10
Pipeline
#8984
passed
1 year ago
Stage: check
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_payload/bl00mbox/_user.py
+9
-2
9 additions, 2 deletions
python_payload/bl00mbox/_user.py
with
9 additions
and
2 deletions
python_payload/bl00mbox/_user.py
+
9
−
2
View file @
7699a286
...
@@ -308,6 +308,7 @@ class SignalInput(Signal):
...
@@ -308,6 +308,7 @@ class SignalInput(Signal):
def
_stop
(
self
):
def
_stop
(
self
):
self
.
value
=
0
self
.
value
=
0
class
SignalInputTriggerMixin
:
class
SignalInputTriggerMixin
:
def
start
(
self
,
velocity
=
32767
):
def
start
(
self
,
velocity
=
32767
):
self
.
_start
(
velocity
)
self
.
_start
(
velocity
)
...
@@ -355,21 +356,27 @@ class SignalGainMixin:
...
@@ -355,21 +356,27 @@ class SignalGainMixin:
class
SignalOutputTrigger
(
SignalOutput
):
class
SignalOutputTrigger
(
SignalOutput
):
pass
pass
class
SignalOutputPitch
(
SignalOutput
,
SignalPitchMixin
):
class
SignalOutputPitch
(
SignalOutput
,
SignalPitchMixin
):
pass
pass
class
SignalOutputGain
(
SignalOutput
,
SignalGainMixin
):
class
SignalOutputGain
(
SignalOutput
,
SignalGainMixin
):
pass
pass
class
SignalInputTrigger
(
SignalInput
,
SignalInputTriggerMixin
):
class
SignalInputTrigger
(
SignalInput
,
SignalInputTriggerMixin
):
pass
pass
class
SignalInputPitch
(
SignalInput
,
SignalPitchMixin
):
class
SignalInputPitch
(
SignalInput
,
SignalPitchMixin
):
pass
pass
class
SignalInputGain
(
SignalInput
,
SignalGainMixin
):
class
SignalInputGain
(
SignalInput
,
SignalGainMixin
):
pass
pass
class
SignalMpxList
:
class
SignalMpxList
:
def
__init__
(
self
):
def
__init__
(
self
):
self
.
_list
=
[]
self
.
_list
=
[]
...
@@ -396,7 +403,7 @@ class SignalMpxList:
...
@@ -396,7 +403,7 @@ class SignalMpxList:
return
self
return
self
def
__next__
(
self
):
def
__next__
(
self
):
self
.
_iter_index
+=
1
;
self
.
_iter_index
+=
1
if
self
.
_iter_index
>=
len
(
self
.
_list
):
if
self
.
_iter_index
>=
len
(
self
.
_list
):
raise
StopIteration
raise
StopIteration
else
:
else
:
...
@@ -422,6 +429,7 @@ class SignalMpxList:
...
@@ -422,6 +429,7 @@ class SignalMpxList:
else
:
else
:
raise
AttributeError
(
"
signal does not exist
"
)
raise
AttributeError
(
"
signal does not exist
"
)
class
SignalList
:
class
SignalList
:
def
__init__
(
self
,
plugin
):
def
__init__
(
self
,
plugin
):
self
.
_list
=
[]
self
.
_list
=
[]
...
@@ -473,7 +481,6 @@ class SignalList:
...
@@ -473,7 +481,6 @@ class SignalList:
getattr
(
self
,
name
,
None
).
add_new_signal
(
signal
,
signal
.
_mpx
)
getattr
(
self
,
name
,
None
).
add_new_signal
(
signal
,
signal
.
_mpx
)
self
.
_setattr_allowed
=
False
self
.
_setattr_allowed
=
False
def
__setattr__
(
self
,
key
,
value
):
def
__setattr__
(
self
,
key
,
value
):
current_value
=
getattr
(
self
,
key
,
None
)
current_value
=
getattr
(
self
,
key
,
None
)
if
isinstance
(
current_value
,
Signal
):
if
isinstance
(
current_value
,
Signal
):
...
...
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