-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Milestone
Description
π Requirements
- The component should control all status LEDs (lights) connected to the board.
- The component should have two parts:
- Driver: This is the code that makes the LEDs light up in different ways.
- Manager: This is the code that connects the driver to the project. It reads settings from a database and tells the driver what to do based on those settings.
- The driver must provide an API for initialization.
- The number of LEDs can change and will be set when the code is built (at compilation time).
- The driver should provide a simple way to set up how each LED connects to the board's pins (GPIO).
- The driver must provide an API to turn an LED on.
- The driver must provide an API to turn an LED off.
- The driver should provide an API to make an LED blink 'n' times. If 'n' is 0, the LED should blink forever. Blinking means the LED is on for 50% of the time and off for 50% of the time (50% duty cycle).
- The driver should provide an API to make an LED flash 'n' times. If 'n' is 0, the LED should flash forever. Flashing means the LED is on for 10% of the time and off for 90% of the time (10% duty cycle).
β Checklist
- The task is implemented according to the requirements.
- The code is covered with unit tests.
- Static code analysis has been completed with no critical issues.
- A pull request has been created.
- The code has passed the code review.
- The pull request has been successfully merged.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Todo