Skip to content
Snippets Groups Projects
Commit 75b5e616 authored by rorist's avatar rorist
Browse files

better lighting when pressing vs playing

parent d43d23b1
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,10 @@ class EndlessSequencer(Application): ...@@ -160,7 +160,10 @@ class EndlessSequencer(Application):
# Light petal # Light petal
for i in range(10): for i in range(10):
if ct.petals[i].pressed or i-1 == self.current_sample: if ct.petals[i].pressed or \
(self.current_sample == i-1
and not ct.petals[0].pressed
and len(self.notes) > 0):
leds.set_all_rgb(0, 0, 0) leds.set_all_rgb(0, 0, 0)
# Select led range # Select led range
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment