diff options
author | Andrew Kannan <andrew.kannan@klaviyo.com> | 2019-03-18 14:12:09 -0400 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-03-18 11:12:09 -0700 |
commit | 99a8628383803d25c07d3f170ce5791da2c80a51 (patch) | |
tree | 0754f688d9ce9515267f368e31f3b826b7019733 /keyboards/cannonkeys/stm32f072/keyboard.h | |
parent | 3a2eb68e9e37fddc79ec59769052846a5e1051e8 (diff) | |
download | qmk_firmware-99a8628383803d25c07d3f170ce5791da2c80a51.tar.gz qmk_firmware-99a8628383803d25c07d3f170ce5791da2c80a51.zip |
[Keyboard] CannonKeys Instant60 Keyboard (#5433)
* Instant 60
* Instant60 changes again
* turn off LSE and features
* Working RGB underglow :tada:
* Add missing files
* Update keymap to have reset
* Backlighting on
* Backlight code for instant60
* Move 072 files to common folder and use it in Instant60
* Updates
* Update keyboards/cannonkeys/instant60/rules.mk
Co-Authored-By: awkannan <andrew.kannan@klaviyo.com>
Diffstat (limited to 'keyboards/cannonkeys/stm32f072/keyboard.h')
-rw-r--r-- | keyboards/cannonkeys/stm32f072/keyboard.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/keyboards/cannonkeys/stm32f072/keyboard.h b/keyboards/cannonkeys/stm32f072/keyboard.h new file mode 100644 index 0000000000..94c973d615 --- /dev/null +++ b/keyboards/cannonkeys/stm32f072/keyboard.h @@ -0,0 +1,23 @@ +#pragma once + +#include "quantum.h" + +typedef union { + uint8_t raw; + struct { + bool enable :1; + bool breathing : 1; + uint8_t level :6; + }; +} backlight_config_t; + +// Backlighting +extern backlight_config_t kb_backlight_config; +extern bool kb_backlight_breathing; +void backlight_init_ports(void); +void backlight_set(uint8_t level); +bool is_breathing(void); +void breathing_enable(void); +void breathing_disable(void); +void load_custom_config(void); +void save_backlight_config_to_eeprom(void); |