diff options
author | Jack Humbert <[email protected]> | 2016-06-23 22:18:20 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2016-06-23 22:18:20 -0400 |
commit | 13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b (patch) | |
tree | 2777e5c95bad3f5a9773fc58524a6ad99df63738 /quantum/quantum.h | |
parent | ba116ceb496011bb35ce074a3ba8c2448f059260 (diff) | |
download | qmk_firmware-13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b.tar.gz qmk_firmware-13bb6b4b7fdd2b3e419d0f89c93fb980b00eeb9b.zip |
Backlight abstraction and other changes (#439)
* redoes matrix pins, abstracts backlight code for B5,6,7
* slimming down keyboard stuff, backlight breathing implemented
* don't call backlight init when no pin
* cleans up user/kb/quantum calls, keyboard files
* fix pvc atomic
* replaces CHANNEL with correct var in breathing
* removes .hexs, updates readmes, updates template
* cleans-up clueboards, readmes to lowercase
* updates readme
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r-- | quantum/quantum.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h index 1f78f37177..7795294d50 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -27,6 +27,10 @@ #include <util/delay.h> #include "bootloader.h" #include "timer.h" +#include "config_common.h" +#include <avr/interrupt.h> +#include "led.h" +#include "action_util.h" extern uint32_t default_layer_state; @@ -74,6 +78,8 @@ void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3); void matrix_init_kb(void); void matrix_scan_kb(void); +void matrix_init_user(void); +void matrix_scan_user(void); bool process_action_kb(keyrecord_t *record); bool process_record_kb(uint16_t keycode, keyrecord_t *record); bool process_record_user(uint16_t keycode, keyrecord_t *record); @@ -89,4 +95,28 @@ void audio_on_user(void); void music_on_user(void); void music_scale_user(void); +#ifdef BACKLIGHT_ENABLE +void backlight_init_ports(void); + +#ifdef BACKLIGHT_BREATHING +void breathing_enable(void); +void breathing_pulse(void); +void breathing_disable(void); +void breathing_self_disable(void); +void breathing_toggle(void); +bool is_breathing(void); + +void breathing_defaults(void); +void breathing_intensity_default(void); +void breathing_speed_default(void); +void breathing_speed_set(uint8_t value); +void breathing_speed_inc(uint8_t value); +void breathing_speed_dec(uint8_t value); +#endif + +#endif + +void led_set_user(uint8_t usb_led); +void led_set_kb(uint8_t usb_led); + #endif |