Skip to content

[ECU STM32] Implement Status LEDs DriverΒ #16

@AksonovSergei

Description

@AksonovSergei

πŸ“Œ Requirements

  1. The component should control all status LEDs (lights) connected to the board.
  2. 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.
  1. The driver must provide an API for initialization.
  2. The number of LEDs can change and will be set when the code is built (at compilation time).
  3. The driver should provide a simple way to set up how each LED connects to the board's pins (GPIO).
  4. The driver must provide an API to turn an LED on.
  5. The driver must provide an API to turn an LED off.
  6. 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).
  7. 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
No labels

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions