Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
337 B

  1. #include "LedDriver.h"
  2. static uint16_t *ledsAddress;
  3. void LedDriver_Create(uint16_t *address) {
  4. ledsAddress = address;
  5. *ledsAddress = 0x0000;
  6. }
  7. void LedDriver_Destroy(uint16_t *address) {
  8. }
  9. void LedDriver_TurnOn(int ledNumber) {
  10. *ledsAddress = 0x0001;
  11. }
  12. void LedDriver_TurnOff(int ledNumber) {
  13. *ledsAddress = 0x0000;
  14. }