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

Issue5194 external notification module refactor #5384

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Blake-Latchford
Copy link
Contributor

Centralize ExternalNotificationModule LED handling

This PR attemtps to take a small step towards addressing issue 5194
by de-duplicating LED handling code within ExternalNotificationModule.
I also refactored the color state code around an alpha channel approach.

This PR attemtps to take a small step towards addressing issue 5194
by de-duplicating LED handling code within ExternalNotificationModule.
I also refactored the color state code around an alpha channel approach.
@Blake-Latchford
Copy link
Contributor Author

Blake-Latchford commented Nov 17, 2024

Flashed to my Heltek v3, and I updated the variant locally to drive some unused pins as LEDs. Logging verified that on startup the LED was disabled. I'm currently trying to figure out how to simulate message reception given that I only own one node right now.

INFO  | ??:??:?? 1 [ExternalNotification] Turning off external notification: 
DEBUG | ??:??:?? 1 [ExternalNotification] setLEDs red=0, green=0, blue=0
INFO  | ??:??:?? 1 [ExternalNotification] 0 
DEBUG | ??:??:?? 1 [ExternalNotification] setLEDs red=0, green=0, blue=0
INFO  | ??:??:?? 1 [ExternalNotification] 1 
DEBUG | ??:??:?? 1 [ExternalNotification] setLEDs red=0, green=0, blue=0
INFO  | ??:??:?? 1 [ExternalNotification] 2
INFO  | ??:??:?? 1 [ExternalNotification] 

Blake-Latchford and others added 3 commits November 17, 2024 11:56
This PR attemtps to take a small step towards addressing issue 5194
by de-duplicating LED handling code within ExternalNotificationModule.
I also refactored the color state code around an alpha channel approach.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants