Skip to content

Commit

Permalink
Merge pull request #48 from emfcamp/thinkl33t/pattern-mirror-hexpansions
Browse files Browse the repository at this point in the history
Add support to mirror the pattern colour onto the hexpansion detect LEDS
  • Loading branch information
thinkl33t committed May 26, 2024
2 parents e60e676 + 36521dc commit 0188971
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/system/hexpansion/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from events.input import Buttons
import vfs
import sys
import settings


class HexpansionManagerApp(app.App):
Expand Down Expand Up @@ -230,7 +231,10 @@ async def background_task(self):
n, readgpios=False
)
if hexpansion_present:
tildagonos.leds[13 + i] = led_colours[i]
if settings.get("pattern_mirror_hexpansions", False):
tildagonos.leds[13 + i] = tildagonos.leds[1 + (i*2)]
else:
tildagonos.leds[13 + i] = led_colours[i]
else:
tildagonos.leds[13 + i] = (0, 0, 0)
if hexpansion_present and not hexpansion_plugin_states[i]:
Expand Down

0 comments on commit 0188971

Please sign in to comment.