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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

ledmap_in_eeprom.h 626B

1234567891011121314151617181920212223242526
  1. #ifndef LEDMAP_IN_EEPROM_H
  2. #define LEDMAP_IN_EEPROM_H
  3. #include "ledmap.h"
  4. #ifndef EECONFIG_LEDMAP_IN_EEPROM
  5. #define EECONFIG_LEDMAP_IN_EEPROM 7
  6. #endif
  7. #define EECONFIG_LEDMAP (uint16_t*)EECONFIG_LEDMAP_IN_EEPROM
  8. #define LEDMAP_SIZE (sizeof(uint16_t) * LED_COUNT)
  9. #define LEDMAP_UNCONFIGURED 0xFFFF
  10. #ifdef LEDMAP_IN_EEPROM_ENABLE
  11. #define ledmap_get_code ledmap_in_eeprom_get_code
  12. void ledmap_in_eeprom_init(void);
  13. void write_ledmap_to_eeprom(void);
  14. ledmap_t ledmap_in_eeprom_get_code(uint8_t index);
  15. #else
  16. #define ledmap_in_eeprom_init()
  17. #define write_ledmap_to_eeprom()
  18. #define ledmap_in_eeprom_get_code()
  19. #endif
  20. #endif