aboutsummaryrefslogtreecommitdiff
path: root/keyboards/infinity60/led_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/infinity60/led_controller.h')
-rw-r--r--keyboards/infinity60/led_controller.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/keyboards/infinity60/led_controller.h b/keyboards/infinity60/led_controller.h
index 740862018..0f2d62d3d 100644
--- a/keyboards/infinity60/led_controller.h
+++ b/keyboards/infinity60/led_controller.h
@@ -32,7 +32,7 @@ msg_t is31_read_register(uint8_t page, uint8_t reg, uint8_t *result);
32 32
33void led_controller_init(void); 33void led_controller_init(void);
34 34
35#define CAPS_LOCK_LED_ADDRESS 46 35#define CAPS_LOCK_LED_ADDRESS 46 //pin matrix location
36#define NUM_LOCK_LED_ADDRESS 85 36#define NUM_LOCK_LED_ADDRESS 85
37#define BACKLIGHT_OFF_LOCK_LED_OFF 0 //set to 0 to show lock leds even if backlight off 37#define BACKLIGHT_OFF_LOCK_LED_OFF 0 //set to 0 to show lock leds even if backlight off
38 38
@@ -87,18 +87,20 @@ void led_controller_init(void);
87#define IS31_TIMEOUT 10000 // needs to be long enough to write a whole page 87#define IS31_TIMEOUT 10000 // needs to be long enough to write a whole page
88 88
89/* ======================================== 89/* ========================================
90 * LED Thread related definitions/functions 90 * LED Thread related functions/definitions
91 * ========================================*/ 91 * ========================================*/
92 92
93extern mailbox_t led_mailbox; 93extern mailbox_t led_mailbox;
94 94
95void set_led_bit (uint8_t *led_control_reg, uint8_t led_msg, uint8_t toggle_on); 95void set_led_bit (uint8_t page, uint8_t *led_control_reg, uint8_t led_addr, uint8_t action);
96void set_lock_leds (uint8_t lock_type, uint8_t lock_status); 96void set_lock_leds (uint8_t lock_type, uint8_t led_on);
97void write_led_page (uint8_t page, const uint8_t *led_array, uint8_t led_count); 97void write_led_page (uint8_t page, const uint8_t *led_array, uint8_t led_count);
98 98
99// constants for signaling the LED controller thread 99// constants for signaling the LED controller thread
100enum led_msg_t { 100enum led_msg_t {
101 KEY_LIGHT, 101 KEY_LIGHT,
102 OFF_LED,
103 ON_LED,
102 TOGGLE_LED, 104 TOGGLE_LED,
103 TOGGLE_ALL, 105 TOGGLE_ALL,
104 TOGGLE_BACKLIGHT, 106 TOGGLE_BACKLIGHT,