diff options
| -rw-r--r-- | keyboards/miuni32/config.h | 1 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/adam-lee/Makefile | 21 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/adam-lee/config.h | 8 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/adam-lee/keymap.c | 119 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/adam-lee/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/default/keymap.c | 104 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/ht_156/Makefile | 21 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/ht_156/config.h | 8 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/ht_156/keymap.c | 181 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/ht_156/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/miuni32/miuni32.h | 4 |
11 files changed, 450 insertions, 19 deletions
diff --git a/keyboards/miuni32/config.h b/keyboards/miuni32/config.h index 4f9b68551..9f26b2291 100644 --- a/keyboards/miuni32/config.h +++ b/keyboards/miuni32/config.h | |||
| @@ -163,6 +163,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 163 | #define RGB_DI_PIN D0 // The pin your RGB strip is wired to | 163 | #define RGB_DI_PIN D0 // The pin your RGB strip is wired to |
| 164 | #define RGBLIGHT_TIMER // Require for fancier stuff (not compatible with audio) | 164 | #define RGBLIGHT_TIMER // Require for fancier stuff (not compatible with audio) |
| 165 | #define RGBLED_NUM 7 // Number of LEDs | 165 | #define RGBLED_NUM 7 // Number of LEDs |
| 166 | #define RGBLIGHT_ANIMATIONS | ||
| 166 | #define RGBLIGHT_HUE_STEP 10 | 167 | #define RGBLIGHT_HUE_STEP 10 |
| 167 | #define RGBLIGHT_SAT_STEP 17 | 168 | #define RGBLIGHT_SAT_STEP 17 |
| 168 | #define RGBLIGHT_VAL_STEP 17 | 169 | #define RGBLIGHT_VAL_STEP 17 |
diff --git a/keyboards/miuni32/keymaps/adam-lee/Makefile b/keyboards/miuni32/keymaps/adam-lee/Makefile new file mode 100644 index 000000000..88a3aea74 --- /dev/null +++ b/keyboards/miuni32/keymaps/adam-lee/Makefile | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 16 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 18 | |||
| 19 | ifndef QUANTUM_DIR | ||
| 20 | include ../../../../Makefile | ||
| 21 | endif | ||
diff --git a/keyboards/miuni32/keymaps/adam-lee/config.h b/keyboards/miuni32/keymaps/adam-lee/config.h new file mode 100644 index 000000000..df06a2620 --- /dev/null +++ b/keyboards/miuni32/keymaps/adam-lee/config.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #ifndef CONFIG_USER_H | ||
| 2 | #define CONFIG_USER_H | ||
| 3 | |||
| 4 | #include "../../config.h" | ||
| 5 | |||
| 6 | // place overrides here | ||
| 7 | |||
| 8 | #endif \ No newline at end of file | ||
diff --git a/keyboards/miuni32/keymaps/adam-lee/keymap.c b/keyboards/miuni32/keymaps/adam-lee/keymap.c new file mode 100644 index 000000000..f799b8929 --- /dev/null +++ b/keyboards/miuni32/keymaps/adam-lee/keymap.c | |||
| @@ -0,0 +1,119 @@ | |||
| 1 | #include "miuni32.h" | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | /* Level 0: Default Layer | ||
| 5 | * ,---------------------------------------------------------------------------------------. | ||
| 6 | * | Q | W | E | R | T | Y | U | I | O | P | BSP | | ||
| 7 | * |---------------------------------------------------------------------------------------| | ||
| 8 | * | A | S | D | F | G | H | J | K | L | ENT |LT(1|,)| | ||
| 9 | * |---------------------------------------------------------------------------------------| | ||
| 10 | * |LT(3|Z)| X | C | V | NO | SPC | B | N | M | RSFT |LT(2|.)| | ||
| 11 | * |---------------------------------------------------------------------------------------| | ||
| 12 | */ | ||
| 13 | [0] ={ | ||
| 14 | {KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC}, | ||
| 15 | {KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, LT(1, KC_COMMA)}, | ||
| 16 | {LT(3, KC_Z), KC_X, KC_C, KC_V, KC_NO, KC_SPC, KC_B, KC_N, KC_M, KC_RSFT, LT(2, KC_DOT)} | ||
| 17 | }, | ||
| 18 | /* Level 1: Numbers Layer | ||
| 19 | * ,---------------------------------------------------------------------------------------. | ||
| 20 | * | ESC | 7 | 8 | 9 | / | * | . | , | ( | ) | DEL | | ||
| 21 | * |---------------------------------------------------------------------------------------| | ||
| 22 | * | TAB | 4 | 5 | 6 | - | + | HOME | UP | END | PGUP | TRNS | | ||
| 23 | * |---------------------------------------------------------------------------------------| | ||
| 24 | * | LATL | 1 | 2 | 3 | 0 | NO | LEFT | DOWN | RGHT | PGDN | RSHFT | | ||
| 25 | * |---------------------------------------------------------------------------------------| | ||
| 26 | */ | ||
| 27 | [1] ={ | ||
| 28 | {KC_ESC, KC_7, KC_8, KC_9, KC_SLSH, KC_ASTR, KC_DOT, KC_COMM, KC_LPRN, KC_RPRN, KC_DEL}, | ||
| 29 | {KC_TAB, KC_4, KC_5, KC_6, KC_MINS, KC_PLUS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS}, | ||
| 30 | {KC_LALT, KC_1, KC_2, KC_3, KC_0, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_RSFT} | ||
| 31 | }, | ||
| 32 | /* Level 2: Symbols Layer | ||
| 33 | * ,---------------------------------------------------------------------------------------. | ||
| 34 | * | ! | @ | # | $ | % | ^ | & | * | - | + | = | | ||
| 35 | * |---------------------------------------------------------------------------------------| | ||
| 36 | * | { | } | [ | ] | TRNS | TRNS | \ | ; | : | ` | ? | | ||
| 37 | * |---------------------------------------------------------------------------------------| | ||
| 38 | * | LSFT | LCTL | L | T | TRNS | TAB | N | TRNS | TRNS | RCTL | TRNS | | ||
| 39 | * |---------------------------------------------------------------------------------------| | ||
| 40 | */ | ||
| 41 | [2] ={ | ||
| 42 | {KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_MINS, KC_PLUS, KC_EQL}, | ||
| 43 | {KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC, KC_TRNS, KC_TRNS, KC_BSLS, KC_SCLN, KC_COLN, KC_GRV, KC_QUES}, | ||
| 44 | {KC_LSFT, KC_LCTL, KC_L, KC_T, KC_TRNS, KC_TAB, KC_N, KC_TRNS, KC_TRNS, KC_RCTL, KC_TRNS} | ||
| 45 | }, | ||
| 46 | /* Level 3: RGB Layer | ||
| 47 | * ,---------------------------------------------------------------------------------------. | ||
| 48 | * | RESET | TRNS | TRNS | TRNS | TRNS | F1 | F2 | F3 | F4 | F5 | F6 | | ||
| 49 | * |---------------------------------------------------------------------------------------| | ||
| 50 | * |RGB_TOG|RGB_MOD|RGB_HUI|RGB_HUD| NO |RGB_SAI|RGB_SAD|RGB_VAI|RGB_VAD| TRNS | TRNS | | ||
| 51 | * |---------------------------------------------------------------------------------------| | ||
| 52 | * | TRNS | TRNS | TRNS | TRNS | NO | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 53 | * |---------------------------------------------------------------------------------------| | ||
| 54 | */ | ||
| 55 | [3] ={ | ||
| 56 | {RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6}, | ||
| 57 | {RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, KC_NO, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_TRNS}, | ||
| 58 | {KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12} | ||
| 59 | } | ||
| 60 | }; | ||
| 61 | |||
| 62 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
| 63 | { | ||
| 64 | // MACRODOWN only works in this function | ||
| 65 | switch(id) { | ||
| 66 | case 0: | ||
| 67 | if (record->event.pressed) { | ||
| 68 | register_code(KC_RSFT); | ||
| 69 | } else { | ||
| 70 | unregister_code(KC_RSFT); | ||
| 71 | } | ||
| 72 | break; | ||
| 73 | } | ||
| 74 | return MACRO_NONE; | ||
| 75 | }; | ||
| 76 | |||
| 77 | void matrix_init_user(void) { | ||
| 78 | } | ||
| 79 | |||
| 80 | void matrix_scan_user(void) { | ||
| 81 | } | ||
| 82 | |||
| 83 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 84 | return true; | ||
| 85 | } | ||
| 86 | |||
| 87 | void led_set_user(uint8_t usb_led) { | ||
| 88 | |||
| 89 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 90 | |||
| 91 | } else { | ||
| 92 | |||
| 93 | } | ||
| 94 | |||
| 95 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 96 | |||
| 97 | } else { | ||
| 98 | |||
| 99 | } | ||
| 100 | |||
| 101 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 102 | |||
| 103 | } else { | ||
| 104 | |||
| 105 | } | ||
| 106 | |||
| 107 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 108 | |||
| 109 | } else { | ||
| 110 | |||
| 111 | } | ||
| 112 | |||
| 113 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 114 | |||
| 115 | } else { | ||
| 116 | |||
| 117 | } | ||
| 118 | |||
| 119 | } | ||
diff --git a/keyboards/miuni32/keymaps/adam-lee/readme.md b/keyboards/miuni32/keymaps/adam-lee/readme.md new file mode 100644 index 000000000..4cff8ef5a --- /dev/null +++ b/keyboards/miuni32/keymaps/adam-lee/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for miuni32 \ No newline at end of file | |||
diff --git a/keyboards/miuni32/keymaps/default/keymap.c b/keyboards/miuni32/keymaps/default/keymap.c index 15e2fa45c..f799b8929 100644 --- a/keyboards/miuni32/keymaps/default/keymap.c +++ b/keyboards/miuni32/keymaps/default/keymap.c | |||
| @@ -1,19 +1,62 @@ | |||
| 1 | #include "miuni32.h" | 1 | #include "miuni32.h" |
| 2 | 2 | ||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 4 | [0] ={ | 4 | /* Level 0: Default Layer |
| 5 | {KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC}, | 5 | * ,---------------------------------------------------------------------------------------. |
| 6 | {KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_RSFT, KC_ENT}, | 6 | * | Q | W | E | R | T | Y | U | I | O | P | BSP | |
| 7 | {KC_Z, KC_X, KC_C, KC_V, KC_V, KC_SPC, KC_B, KC_N, KC_M , MO(1), KC_RCTL} | 7 | * |---------------------------------------------------------------------------------------| |
| 8 | }, | 8 | * | A | S | D | F | G | H | J | K | L | ENT |LT(1|,)| |
| 9 | [1] ={ | 9 | * |---------------------------------------------------------------------------------------| |
| 10 | {KC_PGUP, KC_UP, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL}, | 10 | * |LT(3|Z)| X | C | V | NO | SPC | B | N | M | RSFT |LT(2|.)| |
| 11 | {KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_HOME, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_END, KC_TRNS}, | 11 | * |---------------------------------------------------------------------------------------| |
| 12 | {RGB_TOG, RGB_HUI, RGB_HUD, RGB_SAI, KC_TRNS, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_TRNS, RGB_MOD}, | 12 | */ |
| 13 | } | 13 | [0] ={ |
| 14 | }; | 14 | {KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC}, |
| 15 | const uint16_t PROGMEM fn_actions[] = { | 15 | {KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, LT(1, KC_COMMA)}, |
| 16 | 16 | {LT(3, KC_Z), KC_X, KC_C, KC_V, KC_NO, KC_SPC, KC_B, KC_N, KC_M, KC_RSFT, LT(2, KC_DOT)} | |
| 17 | }, | ||
| 18 | /* Level 1: Numbers Layer | ||
| 19 | * ,---------------------------------------------------------------------------------------. | ||
| 20 | * | ESC | 7 | 8 | 9 | / | * | . | , | ( | ) | DEL | | ||
| 21 | * |---------------------------------------------------------------------------------------| | ||
| 22 | * | TAB | 4 | 5 | 6 | - | + | HOME | UP | END | PGUP | TRNS | | ||
| 23 | * |---------------------------------------------------------------------------------------| | ||
| 24 | * | LATL | 1 | 2 | 3 | 0 | NO | LEFT | DOWN | RGHT | PGDN | RSHFT | | ||
| 25 | * |---------------------------------------------------------------------------------------| | ||
| 26 | */ | ||
| 27 | [1] ={ | ||
| 28 | {KC_ESC, KC_7, KC_8, KC_9, KC_SLSH, KC_ASTR, KC_DOT, KC_COMM, KC_LPRN, KC_RPRN, KC_DEL}, | ||
| 29 | {KC_TAB, KC_4, KC_5, KC_6, KC_MINS, KC_PLUS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS}, | ||
| 30 | {KC_LALT, KC_1, KC_2, KC_3, KC_0, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_RSFT} | ||
| 31 | }, | ||
| 32 | /* Level 2: Symbols Layer | ||
| 33 | * ,---------------------------------------------------------------------------------------. | ||
| 34 | * | ! | @ | # | $ | % | ^ | & | * | - | + | = | | ||
| 35 | * |---------------------------------------------------------------------------------------| | ||
| 36 | * | { | } | [ | ] | TRNS | TRNS | \ | ; | : | ` | ? | | ||
| 37 | * |---------------------------------------------------------------------------------------| | ||
| 38 | * | LSFT | LCTL | L | T | TRNS | TAB | N | TRNS | TRNS | RCTL | TRNS | | ||
| 39 | * |---------------------------------------------------------------------------------------| | ||
| 40 | */ | ||
| 41 | [2] ={ | ||
| 42 | {KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_MINS, KC_PLUS, KC_EQL}, | ||
| 43 | {KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC, KC_TRNS, KC_TRNS, KC_BSLS, KC_SCLN, KC_COLN, KC_GRV, KC_QUES}, | ||
| 44 | {KC_LSFT, KC_LCTL, KC_L, KC_T, KC_TRNS, KC_TAB, KC_N, KC_TRNS, KC_TRNS, KC_RCTL, KC_TRNS} | ||
| 45 | }, | ||
| 46 | /* Level 3: RGB Layer | ||
| 47 | * ,---------------------------------------------------------------------------------------. | ||
| 48 | * | RESET | TRNS | TRNS | TRNS | TRNS | F1 | F2 | F3 | F4 | F5 | F6 | | ||
| 49 | * |---------------------------------------------------------------------------------------| | ||
| 50 | * |RGB_TOG|RGB_MOD|RGB_HUI|RGB_HUD| NO |RGB_SAI|RGB_SAD|RGB_VAI|RGB_VAD| TRNS | TRNS | | ||
| 51 | * |---------------------------------------------------------------------------------------| | ||
| 52 | * | TRNS | TRNS | TRNS | TRNS | NO | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 53 | * |---------------------------------------------------------------------------------------| | ||
| 54 | */ | ||
| 55 | [3] ={ | ||
| 56 | {RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6}, | ||
| 57 | {RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, KC_NO, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_TRNS}, | ||
| 58 | {KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12} | ||
| 59 | } | ||
| 17 | }; | 60 | }; |
| 18 | 61 | ||
| 19 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | 62 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) |
| @@ -31,19 +74,46 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 31 | return MACRO_NONE; | 74 | return MACRO_NONE; |
| 32 | }; | 75 | }; |
| 33 | 76 | ||
| 34 | |||
| 35 | void matrix_init_user(void) { | 77 | void matrix_init_user(void) { |
| 36 | |||
| 37 | } | 78 | } |
| 38 | 79 | ||
| 39 | void matrix_scan_user(void) { | 80 | void matrix_scan_user(void) { |
| 40 | |||
| 41 | } | 81 | } |
| 42 | 82 | ||
| 43 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 83 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 44 | return true; | 84 | return true; |
| 45 | } | 85 | } |
| 46 | 86 | ||
| 47 | void led_set_user(uint8_t usb_led) { | 87 | void led_set_user(uint8_t usb_led) { |
| 48 | 88 | ||
| 89 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 90 | |||
| 91 | } else { | ||
| 92 | |||
| 93 | } | ||
| 94 | |||
| 95 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 96 | |||
| 97 | } else { | ||
| 98 | |||
| 99 | } | ||
| 100 | |||
| 101 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 102 | |||
| 103 | } else { | ||
| 104 | |||
| 105 | } | ||
| 106 | |||
| 107 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 108 | |||
| 109 | } else { | ||
| 110 | |||
| 111 | } | ||
| 112 | |||
| 113 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 114 | |||
| 115 | } else { | ||
| 116 | |||
| 117 | } | ||
| 118 | |||
| 49 | } | 119 | } |
diff --git a/keyboards/miuni32/keymaps/ht_156/Makefile b/keyboards/miuni32/keymaps/ht_156/Makefile new file mode 100644 index 000000000..88a3aea74 --- /dev/null +++ b/keyboards/miuni32/keymaps/ht_156/Makefile | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 16 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 18 | |||
| 19 | ifndef QUANTUM_DIR | ||
| 20 | include ../../../../Makefile | ||
| 21 | endif | ||
diff --git a/keyboards/miuni32/keymaps/ht_156/config.h b/keyboards/miuni32/keymaps/ht_156/config.h new file mode 100644 index 000000000..df06a2620 --- /dev/null +++ b/keyboards/miuni32/keymaps/ht_156/config.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #ifndef CONFIG_USER_H | ||
| 2 | #define CONFIG_USER_H | ||
| 3 | |||
| 4 | #include "../../config.h" | ||
| 5 | |||
| 6 | // place overrides here | ||
| 7 | |||
| 8 | #endif \ No newline at end of file | ||
diff --git a/keyboards/miuni32/keymaps/ht_156/keymap.c b/keyboards/miuni32/keymaps/ht_156/keymap.c new file mode 100644 index 000000000..e40180d49 --- /dev/null +++ b/keyboards/miuni32/keymaps/ht_156/keymap.c | |||
| @@ -0,0 +1,181 @@ | |||
| 1 | #include "miuni32.h" | ||
| 2 | |||
| 3 | // Keyboard layer definitions | ||
| 4 | #define BASE 0 | ||
| 5 | #define NUMBERS 1 | ||
| 6 | #define SYMBOLS 2 | ||
| 7 | #define MEDIA 3 | ||
| 8 | |||
| 9 | // Keyboard macro defintions | ||
| 10 | #define GIT_ST M(0) | ||
| 11 | #define GIT_PU M(1) | ||
| 12 | #define GIT_CM M(2) | ||
| 13 | #define HM_DIR M(3) | ||
| 14 | |||
| 15 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 16 | /* Level 0: Default Layer | ||
| 17 | * ,---------------------------------------------------------------------------------------. | ||
| 18 | * | Q | W | E | R | T | Y | U | I | O | P | BSP | | ||
| 19 | * |---------------------------------------------------------------------------------------| | ||
| 20 | * | A | S | D | F | G | H | J | K | L | ENT | RSFT | | ||
| 21 | * |---------------------------------------------------------------------------------------| | ||
| 22 | * |LT(2|Z)|LT(3|X)| C | V | B | SPC | N | M | , |LT(1|.)| RCTL | | ||
| 23 | * |---------------------------------------------------------------------------------------| | ||
| 24 | */ | ||
| 25 | [BASE] ={ | ||
| 26 | {KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC}, | ||
| 27 | {KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, KC_RSFT}, | ||
| 28 | {LT(2, KC_Z), LT(3, KC_X), KC_C, KC_V, KC_B, KC_SPC, KC_N, KC_M, KC_COMMA, LT(1, KC_DOT), KC_RCTL} | ||
| 29 | }, | ||
| 30 | /* Level 1: Numbers Layer | ||
| 31 | * ,---------------------------------------------------------------------------------------. | ||
| 32 | * | ESC | 7 | 8 | 9 | / | * | . | , | ( | ) | DEL | | ||
| 33 | * |---------------------------------------------------------------------------------------| | ||
| 34 | * | TAB | 4 | 5 | 6 | - | + | HOME | UP | END | INS | PGUP | | ||
| 35 | * |---------------------------------------------------------------------------------------| | ||
| 36 | * | LATL | 1 | 2 | 3 | 0 | ENT | LEFT | DOWN | RGHT | !TRNS!| PGDN | | ||
| 37 | * |---------------------------------------------------------------------------------------| | ||
| 38 | */ | ||
| 39 | [NUMBERS] ={ | ||
| 40 | {KC_ESC, KC_7, KC_8, KC_9, KC_SLSH, KC_ASTR, KC_DOT, KC_COMM, KC_LPRN, KC_RPRN, KC_DEL}, | ||
| 41 | {KC_TAB, KC_4, KC_5, KC_6, KC_MINS, KC_PLUS, KC_HOME, KC_UP, KC_END, KC_INSERT, KC_PGUP}, | ||
| 42 | {KC_LALT, KC_1, KC_2, KC_3, KC_0, KC_ENT, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_PGDN} | ||
| 43 | }, | ||
| 44 | /* Level 2: Symbols Layer | ||
| 45 | * ,---------------------------------------------------------------------------------------. | ||
| 46 | * | ! | @ | # | $ | % | ^ | & | * | _ | = | ? | | ||
| 47 | * |---------------------------------------------------------------------------------------| | ||
| 48 | * | RESET | LSFT | ~ | { | } | \ | | | ; | : | ` | " | | ||
| 49 | * |---------------------------------------------------------------------------------------| | ||
| 50 | * | !TRNS!| LCTL | TRNS | [ | ] | TAB | < | > | TRNS | RCTL | TRNS | | ||
| 51 | * |---------------------------------------------------------------------------------------| | ||
| 52 | */ | ||
| 53 | [SYMBOLS] ={ | ||
| 54 | {KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_UNDS, KC_EQL, KC_QUES}, | ||
| 55 | {RESET, KC_LSFT, KC_TILD, KC_LCBR, KC_RCBR, KC_BSLS, KC_PIPE, KC_SCLN, KC_COLN, KC_GRV, KC_DQUO}, | ||
| 56 | {KC_TRNS, KC_LCTL, KC_TRNS, KC_LBRC, KC_RBRC, KC_TAB, KC_LABK, KC_RABK, KC_TRNS, KC_RCTL, KC_TRNS} | ||
| 57 | }, | ||
| 58 | /* Level 3: Media Layer | ||
| 59 | * ,---------------------------------------------------------------------------------------. | ||
| 60 | * |RGB_TOG|RGB_HUI|RGB_SAI|RGB_VAI| GIT_CM| CALC | WREF | WFAV | MUTE | VOLD | VOLU | | ||
| 61 | * |---------------------------------------------------------------------------------------| | ||
| 62 | * |RGB_MOD|RGB_HUD|RGB_SAD|RGB_VAD| GIT_ST| WHOM | WBAK | WFWD | TRNS | STOP | PLAY | | ||
| 63 | * |---------------------------------------------------------------------------------------| | ||
| 64 | * | TRNS | !TRNS!| TRNS | HM_DIR| GIT_PU| MYCM | WSTP | WSCH | MSEL | MPRV | MNXT | | ||
| 65 | * |---------------------------------------------------------------------------------------| | ||
| 66 | */ | ||
| 67 | [MEDIA] ={ | ||
| 68 | {RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, GIT_CM, KC_CALC, KC_WREF, KC_WFAV, KC_MUTE, KC_VOLD, KC_VOLU}, | ||
| 69 | {RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, GIT_ST, KC_WHOM, KC_WBAK, KC_WFWD, KC_TRNS, KC_MSTP, KC_MPLY}, | ||
| 70 | {KC_TRNS, KC_TRNS, KC_TRNS, HM_DIR, GIT_PU, KC_MYCM, KC_WSTP, KC_WSCH, KC_MSEL, KC_MPRV, KC_MNXT} | ||
| 71 | } | ||
| 72 | }; | ||
| 73 | |||
| 74 | void press_and_release_key(uint8_t code) | ||
| 75 | { | ||
| 76 | register_code(code); | ||
| 77 | unregister_code(code); | ||
| 78 | } | ||
| 79 | |||
| 80 | void press_and_release_mod_key(uint8_t mod, uint8_t code) | ||
| 81 | { | ||
| 82 | register_code(mod); | ||
| 83 | register_code(code); | ||
| 84 | unregister_code(code); | ||
| 85 | unregister_code(mod); | ||
| 86 | } | ||
| 87 | |||
| 88 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
| 89 | { | ||
| 90 | // MACRODOWN only works in this function | ||
| 91 | switch(id) | ||
| 92 | { | ||
| 93 | case 0: | ||
| 94 | if (record->event.pressed) | ||
| 95 | { | ||
| 96 | return MACRO(T(G), T(I), T(T), T(SPC), | ||
| 97 | T(S), T(T), T(A), T(T), T(U), T(S), END); | ||
| 98 | } | ||
| 99 | break; | ||
| 100 | case 1: | ||
| 101 | if (record->event.pressed) | ||
| 102 | { | ||
| 103 | return MACRO(T(G), T(I), T(T), T(SPC), | ||
| 104 | T(P), T(U), T(L), T(L), END); | ||
| 105 | } | ||
| 106 | break; | ||
| 107 | case 2: | ||
| 108 | if (record->event.pressed) | ||
| 109 | { | ||
| 110 | return MACRO(T(G), T(I), T(T), T(SPC), | ||
| 111 | T(C), T(O), T(M), T(M), T(I), T(T), END); | ||
| 112 | } | ||
| 113 | break; | ||
| 114 | case 3: | ||
| 115 | if (record->event.pressed) | ||
| 116 | { | ||
| 117 | /*press_and_release_key(KC_C); | ||
| 118 | press_and_release_key(KC_D); | ||
| 119 | press_and_release_key(KC_SPC); | ||
| 120 | press_and_release_mod_key(KC_LSFT, KC_GRV); | ||
| 121 | press_and_release_key(KC_SLSH); | ||
| 122 | press_and_release_key(KC_Q); | ||
| 123 | press_and_release_key(KC_M); | ||
| 124 | press_and_release_key(KC_K); | ||
| 125 | press_and_release_mod_key(KC_LSFT, KC_MINS);*/ | ||
| 126 | return MACRO(I(0), | ||
| 127 | T(C), T(D), T(SPC), | ||
| 128 | D(LSFT), T(GRV), U(LSFT), T(SLSH), | ||
| 129 | T(Q), T(M), T(K), D(LSFT), T(MINS), U(LSFT), | ||
| 130 | T(F), T(I), T(R), T(M), T(W), T(A), T(R), T(E), T(SLSH), | ||
| 131 | T(K), T(E), T(Y), T(B), T(O), T(A), T(R), T(D), T(S), T(SLSH), | ||
| 132 | T(M), T(I), T(U), T(N), T(I), T(3), T(2), T(SLSH), | ||
| 133 | T(K), T(E), T(Y), T(M), T(A), T(P), T(S), END); | ||
| 134 | } | ||
| 135 | } | ||
| 136 | return MACRO_NONE; | ||
| 137 | }; | ||
| 138 | |||
| 139 | void matrix_init_user(void) { | ||
| 140 | } | ||
| 141 | |||
| 142 | void matrix_scan_user(void) { | ||
| 143 | } | ||
| 144 | |||
| 145 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 146 | return true; | ||
| 147 | } | ||
| 148 | |||
| 149 | void led_set_user(uint8_t usb_led) { | ||
| 150 | |||
| 151 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 152 | |||
| 153 | } else { | ||
| 154 | |||
| 155 | } | ||
| 156 | |||
| 157 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 158 | |||
| 159 | } else { | ||
| 160 | |||
| 161 | } | ||
| 162 | |||
| 163 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 164 | |||
| 165 | } else { | ||
| 166 | |||
| 167 | } | ||
| 168 | |||
| 169 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 170 | |||
| 171 | } else { | ||
| 172 | |||
| 173 | } | ||
| 174 | |||
| 175 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 176 | |||
| 177 | } else { | ||
| 178 | |||
| 179 | } | ||
| 180 | |||
| 181 | } | ||
diff --git a/keyboards/miuni32/keymaps/ht_156/readme.md b/keyboards/miuni32/keymaps/ht_156/readme.md new file mode 100644 index 000000000..e46cc6d53 --- /dev/null +++ b/keyboards/miuni32/keymaps/ht_156/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # ht_156's keymap for miuni32, using 33 keys | |||
diff --git a/keyboards/miuni32/miuni32.h b/keyboards/miuni32/miuni32.h index eecb17f81..8e1b4a38c 100644 --- a/keyboards/miuni32/miuni32.h +++ b/keyboards/miuni32/miuni32.h | |||
| @@ -6,10 +6,10 @@ | |||
| 6 | #define KEYMAP( \ | 6 | #define KEYMAP( \ |
| 7 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ | 7 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ |
| 8 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ | 8 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ |
| 9 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A ) { \ | 9 | K20, K21, K22, K23, K25, K26, K27, K28, K29, K2A ) { \ |
| 10 | { KC_##K00, KC_##K01, KC_##K02, KC_##K03, KC_##K04, KC_##K05, KC_##K06, KC_##K07, KC_##K08, KC_##K09, KC_##K0A }, \ | 10 | { KC_##K00, KC_##K01, KC_##K02, KC_##K03, KC_##K04, KC_##K05, KC_##K06, KC_##K07, KC_##K08, KC_##K09, KC_##K0A }, \ |
| 11 | { KC_##K10, KC_##K11, KC_##K12, KC_##K13, KC_##K14, KC_##K15, KC_##K16, KC_##K17, KC_##K18, KC_##K19, KC_##K1A }, \ | 11 | { KC_##K10, KC_##K11, KC_##K12, KC_##K13, KC_##K14, KC_##K15, KC_##K16, KC_##K17, KC_##K18, KC_##K19, KC_##K1A }, \ |
| 12 | { KC_##K20, KC_##K21, KC_##K22, KC_##K23, KC_##K24, KC_##K25, KC_##K26, KC_##K27, KC_##K28, KC_##K29, KC_##K2A } \ | 12 | { KC_##K20, KC_##K21, KC_##K22, KC_##K23, KC_NO, KC_##K25, KC_##K26, KC_##K27, KC_##K28, KC_##K29, KC_##K2A } \ |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | #endif | 15 | #endif |
