]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/mitosis/keymaps/datagrok/config.h
[Keymap] mitosis:datagrok: use non-copyrighted songs, add workman ditty (#6205)
[qmk_firmware.git] / keyboards / mitosis / keymaps / datagrok / config.h
1 #ifndef CONFIG_USER_H
2 #define CONFIG_USER_H
3
4 #ifdef MITOSIS_DATAGROK_SLOWUART
5 // This is the highest possible baud rate that a pro micro clocked at 8Mhz can
6 // support without errors. I don't notice any difference in behavior at this
7 // slower speed. (So I think it should maybe be the default, to allow a single
8 // codebase to support both available flavors of pro micro.) This requires a
9 // corresponding change to the wireless module firmware; see
10 // https://github.com/reversebias/mitosis/pull/10
11 #undef SERIAL_UART_BAUD // avoids redefinition warning
12 #define SERIAL_UART_BAUD 250000
13 #endif
14
15 // I want to place an underscore as tap behavior on the right shift key. But
16 // RSFT_T(KC_UNDS) doesn't work; mod-tap doesn't work with pre-shifted keys. So
17 // instead I take advantage of Space Cadet Shift that does something similar
18 // and just tweak it to use the -/_ key instead of 0/). See
19 // https://github.com/qmk/qmk_firmware/pull/2055
20 #define RSPC_KEY KC_MINS
21
22 // TODO: figure out which of these I can safely enable to reduce firmware size.
23 //#define NO_ACTION_LAYER
24 //#define NO_ACTION_TAPPING
25 //#define NO_ACTION_ONESHOT // can't; errors
26 //#define NO_ACTION_MACRO
27 //#define NO_ACTION_FUNCTION
28
29 #ifdef AUDIO_ENABLE
30 #define STARTUP_SONG SONG(STARTUP_SOUND)
31 #define DEFAULT_LAYER_SONGS { \
32         SONG(QWERTY_SOUND),   \
33         SONG(COLEMAK_SOUND),  \
34         SONG(DVORAK_SOUND),   \
35         SONG(WORKMAN_SOUND),  \
36         }
37 #define AUDIO_VOICES
38 #define AUDIO_CLICKY
39 #define C6_AUDIO
40 #endif
41
42 #endif
43
44 #define LAYOUT_bottomspace(                                           \
45                k00, k01, k02, k03, k04,      k05, k06, k07, k08, k09, \
46                k10, k11, k12, k13, k14,      k15, k16, k17, k18, k19, \
47                k20, k21, k22, k23, k24,      k25, k26, k27, k28, k29, \
48                k31, k32, k33, k34,      k35, k36, k37, k38,           \
49                k41, k42, k43, k44,      k45, k46, k47, k48            \
50                 )                                                     \
51   {                                                                   \
52     { k00,   k01, k02, k03, k04, k05, k06, k07, k08, k09   },         \
53     { k10,   k11, k12, k13, k14, k15, k16, k17, k18, k19   },         \
54     { k20,   k21, k22, k23, k24, k25, k26, k27, k28, k29   },         \
55     { KC_NO, k31, k32, k43, k44, k45, k46, k37, k38, KC_NO },         \
56     { KC_NO, k41, k42, k33, k34, k35, k36, k47, k48, KC_NO }          \
57   }