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

1234567891011121314151617181920
  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. #ifdef LEDMAP_IN_EEPROM_ENABLE
  9. #define ledmap_get_code ledmap_in_eeprom_get_code
  10. void ledmap_in_eeprom_init(void);
  11. uint8_t ledmap_in_eeprom_get_code(uint8_t index);
  12. #else
  13. #define ledmap_in_eeprom_init()
  14. #define ledmap_in_eeprom_get_code()
  15. #endif
  16. #endif