diff options
| -rw-r--r-- | keyboards/riot_pad/config.h | 8 | ||||
| -rw-r--r-- | keyboards/riot_pad/halconf.h | 7 | ||||
| -rw-r--r-- | keyboards/riot_pad/info.json | 56 | ||||
| -rw-r--r-- | keyboards/riot_pad/keymaps/default/keymap.c | 22 | ||||
| -rw-r--r-- | keyboards/riot_pad/keymaps/via/keymap.c | 22 | ||||
| -rw-r--r-- | keyboards/riot_pad/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/riot_pad/mcuconf.h | 8 | ||||
| -rw-r--r-- | keyboards/riot_pad/readme.md | 25 | ||||
| -rw-r--r-- | keyboards/riot_pad/rules.mk | 1 |
9 files changed, 150 insertions, 0 deletions
diff --git a/keyboards/riot_pad/config.h b/keyboards/riot_pad/config.h new file mode 100644 index 0000000000..97dcb1de3c --- /dev/null +++ b/keyboards/riot_pad/config.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | // Copyright 2023 ShandonCodes (@ShandonCodes) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | #pragma once | ||
| 4 | |||
| 5 | #define WS2812_SPI SPID1 | ||
| 6 | #define WS2812_SPI_MOSI_PAL_MODE 0 | ||
| 7 | #define WS2812_SPI_SCK_PAL_MODE 0 | ||
| 8 | #define WS2812_SPI_SCK_PIN A5 | ||
diff --git a/keyboards/riot_pad/halconf.h b/keyboards/riot_pad/halconf.h new file mode 100644 index 0000000000..555a609029 --- /dev/null +++ b/keyboards/riot_pad/halconf.h | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | // Copyright 2023 ShandonCodes (@ShandonCodes) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | #pragma once | ||
| 4 | |||
| 5 | #define HAL_USE_SPI TRUE | ||
| 6 | |||
| 7 | #include_next <halconf.h> \ No newline at end of file | ||
diff --git a/keyboards/riot_pad/info.json b/keyboards/riot_pad/info.json new file mode 100644 index 0000000000..0798a4de60 --- /dev/null +++ b/keyboards/riot_pad/info.json | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | { | ||
| 2 | "manufacturer": "ShandonCodes", | ||
| 3 | "keyboard_name": "RiotPad", | ||
| 4 | "maintainer": "ShandonCodes", | ||
| 5 | "bootloader": "stm32-dfu", | ||
| 6 | "diode_direction": "COL2ROW", | ||
| 7 | "features": { | ||
| 8 | "bootmagic": true, | ||
| 9 | "command": false, | ||
| 10 | "console": false, | ||
| 11 | "nkro": true, | ||
| 12 | "rgblight": true | ||
| 13 | }, | ||
| 14 | "matrix_pins": { | ||
| 15 | "cols": ["B14", "A8", "A9"], | ||
| 16 | "rows": ["B13", "B15"] | ||
| 17 | }, | ||
| 18 | "processor": "STM32F072", | ||
| 19 | "rgblight": { | ||
| 20 | "animations": { | ||
| 21 | "alternating": true, | ||
| 22 | "breathing": true, | ||
| 23 | "christmas": true, | ||
| 24 | "knight": true, | ||
| 25 | "rainbow_mood": true, | ||
| 26 | "rainbow_swirl": true, | ||
| 27 | "snake": true, | ||
| 28 | "static_gradient": true, | ||
| 29 | "twinkle": true | ||
| 30 | }, | ||
| 31 | "led_count": 12 | ||
| 32 | }, | ||
| 33 | "url": "", | ||
| 34 | "usb": { | ||
| 35 | "device_version": "1.0.0", | ||
| 36 | "pid": "0x1000", | ||
| 37 | "vid": "0x7877" | ||
| 38 | }, | ||
| 39 | "ws2812": { | ||
| 40 | "driver": "spi", | ||
| 41 | "pin": "A7" | ||
| 42 | }, | ||
| 43 | "community_layouts": ["ortho_2x3"], | ||
| 44 | "layouts": { | ||
| 45 | "LAYOUT_ortho_2x3": { | ||
| 46 | "layout": [ | ||
| 47 | {"matrix": [0, 0], "x": 0, "y": 0}, | ||
| 48 | {"matrix": [0, 1], "x": 1, "y": 0}, | ||
| 49 | {"matrix": [0, 2], "x": 2, "y": 0}, | ||
| 50 | {"matrix": [1, 0], "x": 0, "y": 1}, | ||
| 51 | {"matrix": [1, 1], "x": 1, "y": 1}, | ||
| 52 | {"matrix": [1, 2], "x": 2, "y": 1} | ||
| 53 | ] | ||
| 54 | } | ||
| 55 | } | ||
| 56 | } | ||
diff --git a/keyboards/riot_pad/keymaps/default/keymap.c b/keyboards/riot_pad/keymaps/default/keymap.c new file mode 100644 index 0000000000..0e6eda839e --- /dev/null +++ b/keyboards/riot_pad/keymaps/default/keymap.c | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | // Copyright 2023 ShandonCodes (@ShandonCodes) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include QMK_KEYBOARD_H | ||
| 5 | |||
| 6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 7 | /* | ||
| 8 | * ┌───┬───┬────┐ | ||
| 9 | * │ A │ B │ C │ | ||
| 10 | * ├───┼───┼────┤ | ||
| 11 | * │ D │ E │ Fn │ | ||
| 12 | * └───┴───┴────┘ | ||
| 13 | */ | ||
| 14 | [0] = LAYOUT_ortho_2x3( | ||
| 15 | KC_A, KC_B, KC_C, | ||
| 16 | KC_D, KC_E, MO(1) | ||
| 17 | ), | ||
| 18 | [1] = LAYOUT_ortho_2x3( | ||
| 19 | RGB_MOD, RGB_RMOD, RGB_TOG, | ||
| 20 | RGB_VAI, RGB_VAD, KC_TRNS | ||
| 21 | ) | ||
| 22 | }; | ||
diff --git a/keyboards/riot_pad/keymaps/via/keymap.c b/keyboards/riot_pad/keymaps/via/keymap.c new file mode 100644 index 0000000000..0e6eda839e --- /dev/null +++ b/keyboards/riot_pad/keymaps/via/keymap.c | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | // Copyright 2023 ShandonCodes (@ShandonCodes) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include QMK_KEYBOARD_H | ||
| 5 | |||
| 6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 7 | /* | ||
| 8 | * ┌───┬───┬────┐ | ||
| 9 | * │ A │ B │ C │ | ||
| 10 | * ├───┼───┼────┤ | ||
| 11 | * │ D │ E │ Fn │ | ||
| 12 | * └───┴───┴────┘ | ||
| 13 | */ | ||
| 14 | [0] = LAYOUT_ortho_2x3( | ||
| 15 | KC_A, KC_B, KC_C, | ||
| 16 | KC_D, KC_E, MO(1) | ||
| 17 | ), | ||
| 18 | [1] = LAYOUT_ortho_2x3( | ||
| 19 | RGB_MOD, RGB_RMOD, RGB_TOG, | ||
| 20 | RGB_VAI, RGB_VAD, KC_TRNS | ||
| 21 | ) | ||
| 22 | }; | ||
diff --git a/keyboards/riot_pad/keymaps/via/rules.mk b/keyboards/riot_pad/keymaps/via/rules.mk new file mode 100644 index 0000000000..036bd6d1c3 --- /dev/null +++ b/keyboards/riot_pad/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/riot_pad/mcuconf.h b/keyboards/riot_pad/mcuconf.h new file mode 100644 index 0000000000..7c3eec4802 --- /dev/null +++ b/keyboards/riot_pad/mcuconf.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | // Copyright 2023 ShandonCodes (@ShandonCodes) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | #pragma once | ||
| 4 | |||
| 5 | #include_next <mcuconf.h> | ||
| 6 | |||
| 7 | #undef STM32_SPI_USE_SPI1 | ||
| 8 | #define STM32_SPI_USE_SPI1 TRUE \ No newline at end of file | ||
diff --git a/keyboards/riot_pad/readme.md b/keyboards/riot_pad/readme.md new file mode 100644 index 0000000000..c2c3ffd4be --- /dev/null +++ b/keyboards/riot_pad/readme.md | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # riot_pad | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A RGB lovin', 6 key macropad. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [ShandonCodes](https://github.com/ShandonCodes) | ||
| 8 | * Hardware Supported: RiotPad PCB | ||
| 9 | * Hardware Availability: [Limited Groupbuy](https://store.shandon.codes/) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make riot_pad:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make riot_pad:default:flash | ||
| 18 | |||
| 19 | 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). | ||
| 20 | |||
| 21 | ## Bootloader | ||
| 22 | |||
| 23 | Enter the bootloader in 3 ways: | ||
| 24 | |||
| 25 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (top left key) and plug in the keyboard | ||
diff --git a/keyboards/riot_pad/rules.mk b/keyboards/riot_pad/rules.mk new file mode 100644 index 0000000000..7ff128fa69 --- /dev/null +++ b/keyboards/riot_pad/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| # This file intentionally left blank \ No newline at end of file | |||
