2
0

backlight_led.h 424 B

123456789101112131415161718
  1. #ifndef BACKLIGHT_LED_H
  2. #define BACKLIGHT_LED_H
  3. enum Device {
  4. Device_PCBRGB,
  5. Device_STATELED
  6. };
  7. void backlight_init_ports(void);
  8. void backlight_set_state(bool cfg[7]);
  9. void backlight_update_state(void);
  10. void backlight_toggle_rgb(bool enabled);
  11. void backlight_set_rgb(uint8_t cfg[17][3]);
  12. void backlight_set(uint8_t level);
  13. void send_color(uint8_t r, uint8_t g, uint8_t b, enum Device device);
  14. void show(void);
  15. #endif