Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to mirror the pattern colour onto the hexpansion detect LEDS #48

Merged
merged 1 commit into from
May 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading