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
0d040c25
Commit
0d040c25
authored
1 year ago
by
moon2
Committed by
q3k
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
reduced LED brightness
parent
e9ffbf4d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
python_payload/cap_touch_demo.py
+1
-1
1 addition, 1 deletion
python_payload/cap_touch_demo.py
python_payload/main.py
+4
-6
4 additions, 6 deletions
python_payload/main.py
python_payload/melodic_demo.py
+8
-8
8 additions, 8 deletions
python_payload/melodic_demo.py
with
13 additions
and
15 deletions
python_payload/cap_touch_demo.py
+
1
−
1
View file @
0d040c25
...
...
@@ -20,7 +20,7 @@ def set_chord(i):
chord_index
=
i
for
j
in
range
(
40
):
hue
=
int
(
72
*
(
i
+
0.5
))
%
360
set_led_hsv
(
j
,
hue
,
1
,
0.
5
)
set_led_hsv
(
j
,
hue
,
1
,
0.
2
)
chord
=
chords
[
i
]
print
(
"
set chord
"
+
str
(
i
))
update_leds
()
...
...
This diff is collapsed.
Click to expand it.
python_payload/main.py
+
4
−
6
View file @
0d040c25
...
...
@@ -86,29 +86,27 @@ def run_menu():
if
long_bottom_petal_captouch_blocking
(
0
,
20
):
clear_all_leds
()
highlight_bottom_petal
(
0
,
2
55
,
0
,
0
)
highlight_bottom_petal
(
0
,
55
,
0
,
0
)
display_fill
(
background
)
display_update
()
foreground
=
cap_touch_demo
.
run
time
.
sleep_ms
(
100
)
clear_all_leds
()
captouch_autocalib
()
cap_touch_demo
.
foreground
()
if
long_bottom_petal_captouch_blocking
(
1
,
20
):
clear_all_leds
()
highlight_bottom_petal
(
1
,
2
55
,
0
,
0
)
highlight_bottom_petal
(
1
,
55
,
0
,
0
)
display_fill
(
background
)
display_update
()
foreground
=
melodic_demo
.
run
time
.
sleep_ms
(
100
)
clear_all_leds
()
captouch_autocalib
()
melodic_demo
.
foreground
()
def
foreground_menu
():
clear_all_leds
()
highlight_bottom_petal
(
0
,
0
,
2
55
,
2
55
);
highlight_bottom_petal
(
1
,
2
55
,
0
,
2
55
);
highlight_bottom_petal
(
0
,
0
,
55
,
55
);
highlight_bottom_petal
(
1
,
55
,
0
,
55
);
display_fill
(
background
)
draw_text_big
(
select
,
0
,
0
)
display_update
()
...
...
This diff is collapsed.
Click to expand it.
python_payload/melodic_demo.py
+
8
−
8
View file @
0d040c25
...
...
@@ -15,21 +15,21 @@ def change_playing_field_color(r,g,b):
highlight_bottom_petal
(
1
,
r
,
g
,
b
)
highlight_bottom_petal
(
3
,
r
,
g
,
b
)
highlight_bottom_petal
(
4
,
r
,
g
,
b
)
highlight_bottom_petal
(
2
,
2
55
,
0
,
2
55
)
set_led_rgb
(
18
,
2
55
,
0
,
2
55
)
set_led_rgb
(
19
,
2
55
,
0
,
2
55
)
set_led_rgb
(
27
,
2
55
,
0
,
2
55
)
set_led_rgb
(
28
,
2
55
,
0
,
2
55
)
highlight_bottom_petal
(
2
,
55
,
0
,
55
)
set_led_rgb
(
18
,
55
,
0
,
55
)
set_led_rgb
(
19
,
55
,
0
,
55
)
set_led_rgb
(
27
,
55
,
0
,
55
)
set_led_rgb
(
28
,
55
,
0
,
55
)
update_leds
()
def
adjust_playing_field_to_octave
():
global
octave
if
(
octave
==
-
1
):
change_playing_field_color
(
0
,
0
,
2
55
)
change_playing_field_color
(
0
,
0
,
55
)
elif
(
octave
==
0
):
change_playing_field_color
(
0
,
1
27
,
1
27
)
change_playing_field_color
(
0
,
27
,
27
)
elif
(
octave
==
1
):
change_playing_field_color
(
0
,
2
55
,
0
)
change_playing_field_color
(
0
,
55
,
0
)
def
run
():
global
scale
...
...
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