aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keebio/viterbi/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keebio/viterbi/keymaps')
-rw-r--r--keyboards/keebio/viterbi/keymaps/drashna/config.h31
-rw-r--r--keyboards/keebio/viterbi/keymaps/drashna/keymap.c50
2 files changed, 33 insertions, 48 deletions
diff --git a/keyboards/keebio/viterbi/keymaps/drashna/config.h b/keyboards/keebio/viterbi/keymaps/drashna/config.h
index 201c02e41..40a5bbd0e 100644
--- a/keyboards/keebio/viterbi/keymaps/drashna/config.h
+++ b/keyboards/keebio/viterbi/keymaps/drashna/config.h
@@ -21,27 +21,25 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21#define MATRIX_ROWS 5 21#define MATRIX_ROWS 5
22 22
23#ifdef RGBLIGHT_ENABLE 23#ifdef RGBLIGHT_ENABLE
24# undef RGBLED_NUM 24# undef RGBLED_NUM
25# define RGBLED_NUM 16 25# define RGBLED_NUM 16
26
27# define RGBLIGHT_HUE_STEP 8
28# define RGBLIGHT_SAT_STEP 8
29# define RGBLIGHT_VAL_STEP 8
30# define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
31# define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
32#endif // RGBLIGHT_ENABLE
33
34
35 26
27# define RGBLIGHT_HUE_STEP 8
28# define RGBLIGHT_SAT_STEP 8
29# define RGBLIGHT_VAL_STEP 8
30# define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
31# define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
32#endif // RGBLIGHT_ENABLE
36 33
37#undef PRODUCT 34#undef PRODUCT
38#define PRODUCT Drashnas Viterbi Macro Pad 35#define PRODUCT Drashnas Viterbi Macro Pad
39 36
40#ifdef AUDIO_ENABLE 37#ifdef AUDIO_ENABLE
41# define C6_AUDIO 38# define C6_AUDIO
42# define NO_MUSIC_MODE 39# define NO_MUSIC_MODE
43#endif 40#endif
44 41
42// clang-format off
45#define LAYOUT_ortho_5x7( \ 43#define LAYOUT_ortho_5x7( \
46 L00, L01, L02, L03, L04, L05, L06, \ 44 L00, L01, L02, L03, L04, L05, L06, \
47 L10, L11, L12, L13, L14, L15, L16, \ 45 L10, L11, L12, L13, L14, L15, L16, \
@@ -56,8 +54,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
56 { L30, L31, L32, L33, L34, L35, L36 }, \ 54 { L30, L31, L32, L33, L34, L35, L36 }, \
57 { L40, L41, L42, L43, L44, L45, L46 }, \ 55 { L40, L41, L42, L43, L44, L45, L46 }, \
58 } 56 }
57// clang-format on
59 58
60#define QMK_ESC_OUTPUT F5 // usually COL 59#define QMK_ESC_OUTPUT F5 // usually COL
61#define QMK_ESC_INPUT D4 // usually ROW 60#define QMK_ESC_INPUT D4 // usually ROW
62#define QMK_LED B0 61#define QMK_LED B0
63#define QMK_SPEAKER C6 62#define QMK_SPEAKER C6
diff --git a/keyboards/keebio/viterbi/keymaps/drashna/keymap.c b/keyboards/keebio/viterbi/keymaps/drashna/keymap.c
index 9c17c5a57..3b213418d 100644
--- a/keyboards/keebio/viterbi/keymaps/drashna/keymap.c
+++ b/keyboards/keebio/viterbi/keymaps/drashna/keymap.c
@@ -1,24 +1,15 @@
1#include QMK_KEYBOARD_H
2#include "drashna.h" 1#include "drashna.h"
3 2
4extern keymap_config_t keymap_config;
5
6// Each layer gets a name for readability, which is then used in the keymap matrix below.
7// The underscores don't mean anything - you can have a layer called STUFF or any other name.
8// Layer names don't all need to be of the same length, obviously, and you can also skip them
9// entirely and just use numbers.
10
11
12// Fillers to make layering more clear 3// Fillers to make layering more clear
13#define DIABLO TG(_DIABLO) 4#define DIABLO TG(_DIABLO)
14#define GAMEPAD TG(_GAMEPAD) 5#define GAMEPAD TG(_GAMEPAD)
15#define MEDIA TT(_MEDIA) 6#define MEDIA TT(_MEDIA)
16 7
17 8// enum more_custom_keycodes {
18//enum more_custom_keycodes {
19// KC_P00 = NEW_SAFE_RANGE 9// KC_P00 = NEW_SAFE_RANGE
20//}; 10//};
21 11
12// clang-format off
22const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 13const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
23 14
24 [_NUMLOCK] = LAYOUT_ortho_5x7( 15 [_NUMLOCK] = LAYOUT_ortho_5x7(
@@ -55,32 +46,27 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
55 46
56 47
57}; 48};
58 49// clang-format on
59
60 50
61bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { 51bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
62 52 // switch (keycode) {
63 //switch (keycode) { 53 // case KC_P00:
64 //case KC_P00: 54 // if (!record->event.pressed) {
65 // if (!record->event.pressed) { 55 // tap(KC_KP_0);
66 // tap(KC_KP_0); 56 // tap(KC_KP_0);
67 // tap(KC_KP_0); 57 // }
68 // } 58 // return false;
69 // return false; 59 // break;
70 // break; 60 //}
71 //} 61 return true;
72 return true;
73} 62}
74 63
75
76
77
78void matrix_init_keymap(void) { 64void matrix_init_keymap(void) {
79 #ifndef CONVERT_TO_PROTON_C 65#ifndef CONVERT_TO_PROTON_C
80 setPinOutput(D5); 66 setPinOutput(D5);
81 writePinHigh(D5); 67 writePinHigh(D5);
82 68
83 setPinOutput(B0); 69 setPinOutput(B0);
84 writePinHigh(B0); 70 writePinHigh(B0);
85 #endif 71#endif
86} 72}