aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/duck/jetfire/backlight_led.h
blob: 36d8d9aa9b3e37615ac903846c04a77f847211d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef BACKLIGHT_LED_H
#define BACKLIGHT_LED_H

enum Device {
  Device_PCBRGB,
  Device_STATELED
};

void backlight_init_ports(void);
void backlight_set_state(bool cfg[7]);
void backlight_update_state(void);
void backlight_toggle_rgb(bool enabled);
void backlight_set_rgb(uint8_t cfg[17][3]);
void backlight_set(uint8_t level);
void send_color(uint8_t r, uint8_t g, uint8_t b, enum Device device);
void show(void);

#endif