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 600B

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