diff options
| author | noroadsleft <18669334+noroadsleft@users.noreply.github.com> | 2018-05-29 01:13:53 -0700 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-05-29 01:13:53 -0700 |
| commit | 0f99562992debd98001e5a205735e749f48bd46a (patch) | |
| tree | f85ab594c4304637cc555311543a63e50494ac64 /keyboards/bantam44 | |
| parent | eed6ef09991363a8db18f43bf8304ab917a1e9d5 (diff) | |
| download | qmk_firmware-0f99562992debd98001e5a205735e749f48bd46a.tar.gz qmk_firmware-0f99562992debd98001e5a205735e749f48bd46a.zip | |
Refactor and Configurator updates for Bantam44 (#3071)
* Configurator update for Bantam-44
* Refactor for Bantam44
Diffstat (limited to 'keyboards/bantam44')
| -rw-r--r-- | keyboards/bantam44/bantam44.h | 18 | ||||
| -rw-r--r-- | keyboards/bantam44/info.json | 13 | ||||
| -rw-r--r-- | keyboards/bantam44/keymaps/default/keymap.c | 49 |
3 files changed, 48 insertions, 32 deletions
diff --git a/keyboards/bantam44/bantam44.h b/keyboards/bantam44/bantam44.h index 3c0117434..38afbbdde 100644 --- a/keyboards/bantam44/bantam44.h +++ b/keyboards/bantam44/bantam44.h | |||
| @@ -7,17 +7,17 @@ | |||
| 7 | // The following is an example using the Planck MIT layout | 7 | // The following is an example using the Planck MIT layout |
| 8 | // The first section contains all of the arguements | 8 | // The first section contains all of the arguements |
| 9 | // The second converts the arguments into a two-dimensional array | 9 | // The second converts the arguments into a two-dimensional array |
| 10 | #define KEYMAP( \ | 10 | #define LAYOUT( \ |
| 11 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | 11 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ |
| 12 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ | 12 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ |
| 13 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ | 13 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ |
| 14 | K30, K31, K32, K33, K34, K35, K36, K37, K38 \ | 14 | K30, K31, K32, K33, K34, K35, K36, K37, K38 \ |
| 15 | ) \ | 15 | ) \ |
| 16 | { \ | 16 | { \ |
| 17 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | 17 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ |
| 18 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, KC_NO, K2A }, \ | 18 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, KC_NO, K2A }, \ |
| 19 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | 19 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ |
| 20 | { K30, K31, K32, KC_NO, K33, KC_NO, K34, KC_NO, K35, K36, K37, K38 }, \ | 20 | { K30, K31, K32, KC_NO, K33, KC_NO, K34, KC_NO, K35, K36, K37, K38 } \ |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | #endif | 23 | #endif |
diff --git a/keyboards/bantam44/info.json b/keyboards/bantam44/info.json new file mode 100644 index 000000000..485d624f5 --- /dev/null +++ b/keyboards/bantam44/info.json | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Bantam-44", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 12, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "key_count": 44, | ||
| 10 | "layout": [{"label":"K00", "x":0, "y":0}, {"label":"K01", "x":1, "y":0}, {"label":"K02", "x":2, "y":0}, {"label":"K03", "x":3, "y":0}, {"label":"K04", "x":4, "y":0}, {"label":"K05", "x":5, "y":0}, {"label":"K06", "x":6, "y":0}, {"label":"K07", "x":7, "y":0}, {"label":"K08", "x":8, "y":0}, {"label":"K09", "x":9, "y":0}, {"label":"K0A", "x":10, "y":0}, {"label":"K0B", "x":11, "y":0}, {"label":"K10", "x":0, "y":1, "w":1.5}, {"label":"K11", "x":1.5, "y":1}, {"label":"K12", "x":2.5, "y":1}, {"label":"K13", "x":3.5, "y":1}, {"label":"K14", "x":4.5, "y":1}, {"label":"K15", "x":5.5, "y":1}, {"label":"K16", "x":6.5, "y":1}, {"label":"K17", "x":7.5, "y":1}, {"label":"K18", "x":8.5, "y":1}, {"label":"K19", "x":9.5, "y":1}, {"label":"K1A", "x":10.5, "y":1, "w":1.5}, {"label":"K20", "x":0, "y":2}, {"label":"K21", "x":1, "y":2}, {"label":"K22", "x":2, "y":2}, {"label":"K23", "x":3, "y":2}, {"label":"K24", "x":4, "y":2}, {"label":"K25", "x":5, "y":2}, {"label":"K26", "x":6, "y":2}, {"label":"K27", "x":7, "y":2}, {"label":"K28", "x":8, "y":2}, {"label":"K29", "x":9, "y":2}, {"label":"K2A", "x":10, "y":2}, {"label":"K2B", "x":11, "y":2}, {"label":"K30", "x":0, "y":3, "w":1.25}, {"label":"K31", "x":1.25, "y":3, "w":1.25}, {"label":"K32", "x":2.5, "y":3, "w":1.25}, {"label":"K33", "x":3.75, "y":3, "w":1.25}, {"label":"K34", "x":5, "y":3, "w":2.75}, {"label":"K35", "x":7.75, "y":3, "w":1.25}, {"label":"K36", "x":9, "y":3}, {"label":"K37", "x":10, "y":3}, {"label":"K38", "x":11, "y":3}] | ||
| 11 | } | ||
| 12 | } | ||
| 13 | } | ||
diff --git a/keyboards/bantam44/keymaps/default/keymap.c b/keyboards/bantam44/keymaps/default/keymap.c index ed795eee1..0e15bebf8 100644 --- a/keyboards/bantam44/keymaps/default/keymap.c +++ b/keyboards/bantam44/keymaps/default/keymap.c | |||
| @@ -1,30 +1,33 @@ | |||
| 1 | #include "bantam44.h" | 1 | #include QMK_KEYBOARD_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] = { /* Base */ | 4 | /* Base */ |
| 5 | {KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC }, | 5 | [0] = LAYOUT( \ |
| 6 | {KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_NO, KC_ENT }, | 6 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ |
| 7 | {KC_CAPS, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT }, | 7 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, \ |
| 8 | {KC_LCTL, KC_LGUI, KC_LALT, KC_NO, MO(1), KC_NO, KC_SPC, KC_NO, MO(2), KC_SCLN, KC_QUOT, KC_SLSH } | 8 | KC_CAPS, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, \ |
| 9 | }, | 9 | KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, MO(2), KC_SCLN, KC_QUOT, KC_SLSH \ |
| 10 | [1] = { /* LOWER */ | 10 | ), |
| 11 | {KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DELT }, | 11 | /* LOWER */ |
| 12 | {KC_TAB, KC_MPRV, KC_MPLY, KC_MNXT, KC_GRV, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_NO, KC_ENT }, | 12 | [1] = LAYOUT( \ |
| 13 | {KC_CAPS, KC_LSFT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_NO, KC_HOME, KC_PGUP, KC_RSFT }, | 13 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DELT, \ |
| 14 | {KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_TRNS, KC_NO, KC_SPC, KC_NO, KC_TRNS, KC_END, KC_PGDN, KC_EXLM } | 14 | KC_TAB, KC_MPRV, KC_MPLY, KC_MNXT, KC_GRV, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_ENT, \ |
| 15 | }, | 15 | KC_CAPS, KC_LSFT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_NO, KC_HOME, KC_PGUP, KC_RSFT, \ |
| 16 | [2] = { /* RAISE */ | 16 | KC_LCTL, KC_LGUI, KC_LALT, KC_TRNS, KC_SPC, KC_TRNS, KC_END, KC_PGDN, KC_EXLM \ |
| 17 | {KC_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DELT }, | 17 | ), |
| 18 | {KC_TAB, KC_MUTE, KC_VOLD, KC_VOLU, KC_TILD, KC_PIPE, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_NO, KC_ENT }, | 18 | /* RAISE */ |
| 19 | {KC_CAPS, KC_LSFT, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_UP, KC_RSFT }, | 19 | [2] = LAYOUT( \ |
| 20 | {KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_TRNS, KC_NO, KC_SPC, KC_NO, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT } | 20 | KC_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DELT, \ |
| 21 | } | 21 | KC_TAB, KC_MUTE, KC_VOLD, KC_VOLU, KC_TILD, KC_PIPE, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_ENT, \ |
| 22 | KC_CAPS, KC_LSFT, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_UP, KC_RSFT, \ | ||
| 23 | KC_LCTL, KC_LGUI, KC_LALT, KC_TRNS, KC_SPC, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT \ | ||
| 24 | ) | ||
| 22 | }; | 25 | }; |
| 23 | 26 | ||
| 24 | const uint16_t PROGMEM fn_actions[] = { | 27 | const uint16_t PROGMEM fn_actions[] = { |
| 25 | }; | 28 | }; |
| 26 | 29 | ||
| 27 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) // MACRODOWN only works in this function | 30 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) // MACRODOWN only works in this function |
| 28 | { | 31 | { |
| 29 | return MACRO_NONE; | 32 | return MACRO_NONE; |
| 30 | }; \ No newline at end of file | 33 | }; |
