diff options
| author | Erez Zukerman <bulk@ezuk.org> | 2016-05-15 00:27:32 -0400 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2016-05-15 00:27:32 -0400 |
| commit | 1a8c0dd22d6a2255511d0db6a456315541b5815b (patch) | |
| tree | 6c7d5e9dc66f9ce864cfe87a72dfb47e6f06d3a7 /keyboard/planck/planck.h | |
| parent | 79d26f331a275c99f76a30d34752fbd65bb3f335 (diff) | |
| download | qmk_firmware-1a8c0dd22d6a2255511d0db6a456315541b5815b.tar.gz qmk_firmware-1a8c0dd22d6a2255511d0db6a456315541b5815b.zip | |
Leader key implementation (#326)
* implements leader key for planck experimental
* allows override of leader timeout
* adds ability to use the leader key in seq
* fixes leader keycode
* adds chording prototype
* fixes keycode detection
* moves music mode to quantum.c
* disables chording by default
* updates process_action functions to return bool
Diffstat (limited to 'keyboard/planck/planck.h')
| -rw-r--r-- | keyboard/planck/planck.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/keyboard/planck/planck.h b/keyboard/planck/planck.h index cfd4956bf..8aec6b262 100644 --- a/keyboard/planck/planck.h +++ b/keyboard/planck/planck.h | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | #ifndef PLANCK_H | 1 | #ifndef PLANCK_H |
| 2 | #define PLANCK_H | 2 | #define PLANCK_H |
| 3 | 3 | ||
| 4 | #include "matrix.h" | 4 | #include "quantum.h" |
| 5 | #include "keymap_common.h" | ||
| 6 | #ifdef BACKLIGHT_ENABLE | ||
| 7 | #include "backlight.h" | ||
| 8 | #endif | ||
| 9 | #ifdef RGBLIGHT_ENABLE | ||
| 10 | #include "rgblight.h" | ||
| 11 | #endif | ||
| 12 | #include <stddef.h> | ||
| 13 | #include <avr/io.h> | ||
| 14 | #ifdef MIDI_ENABLE | ||
| 15 | #include <keymap_midi.h> | ||
| 16 | #endif | ||
| 17 | 5 | ||
| 18 | #define PLANCK_MIT( \ | 6 | #define PLANCK_MIT( \ |
| 19 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ | 7 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ |
| @@ -43,7 +31,7 @@ | |||
| 43 | 31 | ||
| 44 | void matrix_init_user(void); | 32 | void matrix_init_user(void); |
| 45 | void matrix_scan_user(void); | 33 | void matrix_scan_user(void); |
| 46 | void process_action_user(keyrecord_t *record); | 34 | bool process_action_user(keyrecord_t *record); |
| 47 | 35 | ||
| 48 | void led_set_user(uint8_t usb_led); | 36 | void led_set_user(uint8_t usb_led); |
| 49 | void backlight_init_ports(void); | 37 | void backlight_init_ports(void); |
