diff options
| author | jpetermans <tibcmhhm@gmail.com> | 2017-04-30 16:27:46 -0700 |
|---|---|---|
| committer | jpetermans <tibcmhhm@gmail.com> | 2017-04-30 16:27:46 -0700 |
| commit | b27fb216efaa095d19b0175b9f64f96ff5e3544a (patch) | |
| tree | bf691d1f707458964a916e5d2e849251d4370260 /keyboards/infinity60/led_controller.h | |
| parent | b3945c103cfa4c8f30a656d626dba75ad7f0af85 (diff) | |
| download | qmk_firmware-b27fb216efaa095d19b0175b9f64f96ff5e3544a.tar.gz qmk_firmware-b27fb216efaa095d19b0175b9f64f96ff5e3544a.zip | |
Testing initial blink support
Diffstat (limited to 'keyboards/infinity60/led_controller.h')
| -rw-r--r-- | keyboards/infinity60/led_controller.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/keyboards/infinity60/led_controller.h b/keyboards/infinity60/led_controller.h index b06113b07..455f06050 100644 --- a/keyboards/infinity60/led_controller.h +++ b/keyboards/infinity60/led_controller.h | |||
| @@ -34,7 +34,6 @@ void led_controller_init(void); | |||
| 34 | 34 | ||
| 35 | #define CAPS_LOCK_LED_ADDRESS 46 //pin matrix location | 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 | ||
| 38 | 37 | ||
| 39 | /* ============================= | 38 | /* ============================= |
| 40 | * IS31 chip related definitions | 39 | * IS31 chip related definitions |
| @@ -93,12 +92,16 @@ void led_controller_init(void); | |||
| 93 | extern mailbox_t led_mailbox; | 92 | extern mailbox_t led_mailbox; |
| 94 | 93 | ||
| 95 | void set_led_bit (uint8_t page, uint8_t *led_control_reg, uint8_t led_addr, uint8_t action); | 94 | void set_led_bit (uint8_t page, uint8_t *led_control_reg, uint8_t led_addr, uint8_t action); |
| 96 | void set_lock_leds (uint8_t lock_type, uint8_t led_on); | 95 | void set_lock_leds (uint8_t led_addr, uint8_t led_action); |
| 96 | void write_led_byte (uint8_t page, uint8_t row, uint8_t led_byte); | ||
| 97 | void write_led_page (uint8_t page, uint8_t *led_array, uint8_t led_count); | 97 | void write_led_page (uint8_t page, 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 |
| 100 | enum led_msg_t { | 100 | enum led_msg_t { |
| 101 | KEY_LIGHT, | 101 | KEY_LIGHT, |
| 102 | BLINK_OFF_LED, | ||
| 103 | BLINK_ON_LED, | ||
| 104 | BLINK_TOGGLE_LED, | ||
| 102 | OFF_LED, | 105 | OFF_LED, |
| 103 | ON_LED, | 106 | ON_LED, |
| 104 | TOGGLE_LED, | 107 | TOGGLE_LED, |
