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

Create RGB LED library #292

Open
cindyli-13 opened this issue Feb 22, 2021 · 0 comments
Open

Create RGB LED library #292

cindyli-13 opened this issue Feb 22, 2021 · 0 comments
Labels
easy enhancement New feature or request

Comments

@cindyli-13
Copy link
Member

cindyli-13 commented Feb 22, 2021

Each rover board has an onboard RGB LED. We've just been using it for debug purposes but we would like to actually use it as a visual indicator of board status. An LED matrix driver already exists for control of our custom LED matrix board - the RGB LED driver has the exact same implementation, except on some boards the signals for the onboard RGB LEDs are active low instead of active high.

The scope of this task includes:

  • Refactoring the LEDMatrix class to RGBLED, making it a base class
  • Adding support for active high or active low configurations to the RGB LED driver
  • Creating LEDMatrix and StatusLED classes that inherit from the RGBLED base class. LEDMatrix should be active high and support the functionalities of the old LEDMatrix class. StatusLED should support both active high and active low configurations and have the functionality of taking in a "status enum" to set the LED flash pattern.
  • Status enums: designing colour codes / flash patterns for different board states. Ideally this would be standardized across all boards (eg. solid green = operational, solid yellow = fault, flashing red = fatal failure).
  • Updating the test-led-matrix test app to test both LEDMatrix and StatusLED classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant