aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/keymaps/backlight/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/onekey/keymaps/backlight/keymap.c')
-rw-r--r--keyboards/handwired/onekey/keymaps/backlight/keymap.c45
1 files changed, 22 insertions, 23 deletions
diff --git a/keyboards/handwired/onekey/keymaps/backlight/keymap.c b/keyboards/handwired/onekey/keymaps/backlight/keymap.c
index 1f4be16a6..1fbbc632d 100644
--- a/keyboards/handwired/onekey/keymaps/backlight/keymap.c
+++ b/keyboards/handwired/onekey/keymaps/backlight/keymap.c
@@ -2,39 +2,38 @@
2 2
3//Tap Dance Declarations 3//Tap Dance Declarations
4enum { 4enum {
5 TD_BL = 0 5 TD_BL = 0
6}; 6};
7 7
8void dance_cln_finished (qk_tap_dance_state_t *state, void *user_data) { 8void dance_cln_finished(qk_tap_dance_state_t *state, void *user_data) {
9 // noop 9 // noop
10} 10}
11 11
12void dance_cln_reset (qk_tap_dance_state_t *state, void *user_data) { 12void dance_cln_reset(qk_tap_dance_state_t *state, void *user_data) {
13 switch (state->count) { 13 switch (state->count) {
14 case 1: 14 case 1:
15 // single tap - step through backlight 15 // single tap - step through backlight
16 backlight_step(); 16 backlight_step();
17 break; 17 break;
18#ifdef BACKLIGHT_BREATHING 18#ifdef BACKLIGHT_BREATHING
19 case 2: 19 case 2:
20 // double tap - toggle breathing 20 // double tap - toggle breathing
21 breathing_toggle(); 21 breathing_toggle();
22 break; 22 break;
23 case 3: 23 case 3:
24 //tripple tap - do some pulse stuff 24 // triple tap - do some pulse stuff
25 breathing_pulse(); 25 breathing_pulse();
26 break; 26 break;
27#endif 27#endif
28 default: 28 default:
29 // more - nothing 29 break;
30 break; 30 }
31 }
32} 31}
33 32
34qk_tap_dance_action_t tap_dance_actions[] = { 33qk_tap_dance_action_t tap_dance_actions[] = {
35 [TD_BL] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_cln_finished, dance_cln_reset) 34 [TD_BL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, dance_cln_reset)
36}; 35};
37 36
38const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 37const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39 LAYOUT( TD(TD_BL) ) 38 LAYOUT_ortho_1x1(TD(TD_BL))
40}; 39};