diff options
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/amag23/amag23.c | 17 | ||||
| -rw-r--r-- | keyboards/amag23/amag23.h | 32 | ||||
| -rw-r--r-- | keyboards/amag23/config.h | 50 | ||||
| -rw-r--r-- | keyboards/amag23/info.json | 36 | ||||
| -rw-r--r-- | keyboards/amag23/keymaps/default/keymap.c | 40 | ||||
| -rw-r--r-- | keyboards/amag23/keymaps/default/readme.md | 14 | ||||
| -rw-r--r-- | keyboards/amag23/keymaps/qwert/keymap.c | 40 | ||||
| -rw-r--r-- | keyboards/amag23/keymaps/qwert/readme.md | 14 | ||||
| -rw-r--r-- | keyboards/amag23/readme.md | 27 | ||||
| -rw-r--r-- | keyboards/amag23/rules.mk | 19 |
10 files changed, 289 insertions, 0 deletions
diff --git a/keyboards/amag23/amag23.c b/keyboards/amag23/amag23.c new file mode 100644 index 000000000..5fda69e99 --- /dev/null +++ b/keyboards/amag23/amag23.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include "amag23.h" | ||
| 17 | |||
diff --git a/keyboards/amag23/amag23.h b/keyboards/amag23/amag23.h new file mode 100644 index 000000000..a737dde63 --- /dev/null +++ b/keyboards/amag23/amag23.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* Copyright 2021 | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | // clang-format off | ||
| 21 | #define LAYOUT_all( \ | ||
| 22 | K00, K01, K02, K03, K04, K05, \ | ||
| 23 | K10, K11, K12, K13, K14, K15, \ | ||
| 24 | K20, K21, K22, K23, K24, K25, \ | ||
| 25 | K30, K31, K32, K33, K34 \ | ||
| 26 | ) { \ | ||
| 27 | { K00, K01, K02, K03, K04, K05 }, \ | ||
| 28 | { K10, K11, K12, K13, K14, K15 }, \ | ||
| 29 | { K20, K21, K22, K23, K24, K25 }, \ | ||
| 30 | { K30, K31, K32, K33, KC_NO, K34 } \ | ||
| 31 | } | ||
| 32 | // clang-format on | ||
diff --git a/keyboards/amag23/config.h b/keyboards/amag23/config.h new file mode 100644 index 000000000..798fcf9d0 --- /dev/null +++ b/keyboards/amag23/config.h | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* Copyright 2021 | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #include "config_common.h" | ||
| 19 | |||
| 20 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0x4B54 // "KT" | ||
| 22 | #define PRODUCT_ID 0x2323 | ||
| 23 | #define DEVICE_VER 0x0001 | ||
| 24 | #define MANUFACTURER Koolertron | ||
| 25 | #define PRODUCT AMAG23 | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 4 | ||
| 29 | #define MATRIX_COLS 6 | ||
| 30 | |||
| 31 | #define MATRIX_ROW_PINS { A0, A1, A2, A3 } | ||
| 32 | #define MATRIX_COL_PINS { B0, B1, B2, B3, B4, B5 } | ||
| 33 | #define UNUSED_PINS | ||
| 34 | |||
| 35 | /* COL2ROW, ROW2COL*/ | ||
| 36 | #define DIODE_DIRECTION ROW2COL | ||
| 37 | |||
| 38 | #define RGBLED_NUM 7 | ||
| 39 | #define RGBLIGHT_ANIMATIONS | ||
| 40 | #define RGBLIGHT_HUE_STEP 8 | ||
| 41 | #define RGBLIGHT_SAT_STEP 8 | ||
| 42 | #define RGBLIGHT_VAL_STEP 8 | ||
| 43 | |||
| 44 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 45 | #define DEBOUNCE 5 | ||
| 46 | |||
| 47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 48 | #define LOCKING_SUPPORT_ENABLE | ||
| 49 | /* Locking resynchronize hack */ | ||
| 50 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/amag23/info.json b/keyboards/amag23/info.json new file mode 100644 index 000000000..c57340772 --- /dev/null +++ b/keyboards/amag23/info.json | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "AMAG23", | ||
| 3 | "url": "http://www.koolertron.com/koolertron-one-handed-macro-mechanical-keyboard-rgb-led-backlit-portable-mini-onehanded-mechanical-gaming-keypad-23-fully-programmable-keys-blue-switches-p-874.html", | ||
| 4 | "maintainer": "ianmclinden", | ||
| 5 | "width": 6, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"K00", "x":0, "y":0}, | ||
| 11 | {"label":"K01", "x":1, "y":0}, | ||
| 12 | {"label":"K02", "x":2, "y":0}, | ||
| 13 | {"label":"K03", "x":3, "y":0}, | ||
| 14 | {"label":"K04", "x":4, "y":0}, | ||
| 15 | {"label":"K05", "x":5, "y":0}, | ||
| 16 | {"label":"K10", "x":0, "y":1}, | ||
| 17 | {"label":"K11", "x":1, "y":1}, | ||
| 18 | {"label":"K12", "x":2, "y":1}, | ||
| 19 | {"label":"K13", "x":3, "y":1}, | ||
| 20 | {"label":"K14", "x":4, "y":1}, | ||
| 21 | {"label":"K15", "x":5, "y":1}, | ||
| 22 | {"label":"K20", "x":0, "y":2}, | ||
| 23 | {"label":"K21", "x":1, "y":2}, | ||
| 24 | {"label":"K22", "x":2, "y":2}, | ||
| 25 | {"label":"K23", "x":3, "y":2}, | ||
| 26 | {"label":"K24", "x":4, "y":2}, | ||
| 27 | {"label":"K25", "x":5, "y":2}, | ||
| 28 | {"label":"K30", "x":0, "y":3}, | ||
| 29 | {"label":"K31", "x":1, "y":3}, | ||
| 30 | {"label":"K32", "x":2, "y":3}, | ||
| 31 | {"label":"K33", "x":3, "y":3}, | ||
| 32 | {"label":"K34", "x":4, "y":3, "w":2} | ||
| 33 | ] | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } | ||
diff --git a/keyboards/amag23/keymaps/default/keymap.c b/keyboards/amag23/keymaps/default/keymap.c new file mode 100644 index 000000000..6d3619884 --- /dev/null +++ b/keyboards/amag23/keymaps/default/keymap.c | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* Copyright 2021 | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | BASE, | ||
| 21 | FN1 | ||
| 22 | }; | ||
| 23 | |||
| 24 | // clang-format off | ||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | [BASE] = LAYOUT_all( /* Base Layer */ | ||
| 27 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, | ||
| 28 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_Y, | ||
| 29 | MO(FN1), KC_A, KC_S, KC_D, KC_F, KC_G, | ||
| 30 | KC_Z, KC_X, KC_C, KC_B, KC_SPC | ||
| 31 | ), | ||
| 32 | [FN1] = LAYOUT_all( /* Function Layer */ | ||
| 33 | KC_NO, KC_NO, KC_NO, RGB_MOD, KC_NO, KC_NO, | ||
| 34 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 35 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 36 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO | ||
| 37 | ), | ||
| 38 | }; | ||
| 39 | // clang-format on | ||
| 40 | |||
diff --git a/keyboards/amag23/keymaps/default/readme.md b/keyboards/amag23/keymaps/default/readme.md new file mode 100644 index 000000000..a1a784cdf --- /dev/null +++ b/keyboards/amag23/keymaps/default/readme.md | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | # Factory Keymap for Koolertron AMAG23 | ||
| 2 | |||
| 3 | ## Additional Notes | ||
| 4 | Default Keymap for AMAG23 as indicated on the original [product page](http://www.koolertron.com/koolertron-one-handed-macro-mechanical-keyboard-rgb-led-backlit-portable-mini-onehanded-mechanical-gaming-keypad-23-fully-programmable-keys-blue-switches-p-853.html). | ||
| 5 | |||
| 6 | ## Keymap | ||
| 7 | |||
| 8 |  | ||
| 9 | |||
| 10 | ## Build | ||
| 11 | |||
| 12 | To build the factory keymap, simply run: | ||
| 13 | |||
| 14 | make amag23:default | ||
diff --git a/keyboards/amag23/keymaps/qwert/keymap.c b/keyboards/amag23/keymaps/qwert/keymap.c new file mode 100644 index 000000000..4cb2e4736 --- /dev/null +++ b/keyboards/amag23/keymaps/qwert/keymap.c | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* Copyright 2021 | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | BASE, | ||
| 21 | FN1 | ||
| 22 | }; | ||
| 23 | |||
| 24 | // clang-format off | ||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | [BASE] = LAYOUT_all( /* Base Layer */ | ||
| 27 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, | ||
| 28 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, | ||
| 29 | MO(FN1), KC_A, KC_S, KC_D, KC_F, KC_G, | ||
| 30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_SPC | ||
| 31 | ), | ||
| 32 | [FN1] = LAYOUT_all( /* Function Layer */ | ||
| 33 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, | ||
| 34 | _______, RGB_TOG, RGB_VAI, RGB_MOD, RGB_HUI, _______, | ||
| 35 | _______, _______, RGB_VAD, RGB_RMOD,RGB_HUD, _______, | ||
| 36 | _______, _______, _______, _______, _______ | ||
| 37 | ), | ||
| 38 | }; | ||
| 39 | // clang-format on | ||
| 40 | |||
diff --git a/keyboards/amag23/keymaps/qwert/readme.md b/keyboards/amag23/keymaps/qwert/readme.md new file mode 100644 index 000000000..c3a7df467 --- /dev/null +++ b/keyboards/amag23/keymaps/qwert/readme.md | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | # QWERT Keymap for Koolertron AMAG23 | ||
| 2 | |||
| 3 | ## Additional Notes | ||
| 4 | QWERT keymap, based on the left hand of an ortholinear layout. | ||
| 5 | |||
| 6 | ## Keymap | ||
| 7 | |||
| 8 |  | ||
| 9 | |||
| 10 | ## Build | ||
| 11 | |||
| 12 | To build the factory keymap, simply run: | ||
| 13 | |||
| 14 | make amag23:qwert | ||
diff --git a/keyboards/amag23/readme.md b/keyboards/amag23/readme.md new file mode 100644 index 000000000..6ffd64f87 --- /dev/null +++ b/keyboards/amag23/readme.md | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # AMAG23 (Koolertron) | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | One Handed Macro Mechanical Keyboard, 23 Key with optional RGB backlighting. | ||
| 6 | |||
| 7 | - Keyboard Maintainer: [ianmclinden](https://github.com/ianmclinden) | ||
| 8 | - Hardware Supported: AMAG23 (ATmega32A) | ||
| 9 | - Hardware Availability: | ||
| 10 | - [Newegg](https://www.newegg.com/p/32K-00H1-00001) | ||
| 11 | - [Amazon](https://www.amazon.com/Koolertron-Mechanical-Keyboard-One-Handed-Programmable/dp/B07RM1TBR8) | ||
| 12 | |||
| 13 | Make example for this keyboard (after setting up your build environment): | ||
| 14 | |||
| 15 | make amag23:default | ||
| 16 | |||
| 17 | Flashing example for this keyboard ([after setting up the bootloadHID flashing environment](https://docs.qmk.fm/#/flashing_bootloadhid)) | ||
| 18 | |||
| 19 | make amag23:default:flash | ||
| 20 | |||
| 21 | **Reset Key**: Hold down the *Escape* key while plugging in the keyboard. | ||
| 22 | |||
| 23 | **Tips**: | ||
| 24 | - The keyboard comes with bootloadHID installed from factory. | ||
| 25 | - The RGB leds seem to be chained together in diagonal rows. The result is that only 7 individual colors are supported, and these are striped across the keypad. | ||
| 26 | |||
| 27 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/amag23/rules.mk b/keyboards/amag23/rules.mk new file mode 100644 index 000000000..fa292d5cc --- /dev/null +++ b/keyboards/amag23/rules.mk | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32a | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = bootloadHID | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 18 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 19 | WS2812_DRIVER = i2c | ||
