diff options
Diffstat (limited to 'keyboards/pimentoso')
| -rw-r--r-- | keyboards/pimentoso/touhoupad/config.h | 52 | ||||
| -rw-r--r-- | keyboards/pimentoso/touhoupad/info.json | 12 | ||||
| -rw-r--r-- | keyboards/pimentoso/touhoupad/keymaps/default/keymap.c | 25 | ||||
| -rw-r--r-- | keyboards/pimentoso/touhoupad/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/pimentoso/touhoupad/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/pimentoso/touhoupad/rules.mk | 22 | ||||
| -rw-r--r-- | keyboards/pimentoso/touhoupad/touhoupad.c | 16 | ||||
| -rw-r--r-- | keyboards/pimentoso/touhoupad/touhoupad.h | 23 |
8 files changed, 170 insertions, 0 deletions
diff --git a/keyboards/pimentoso/touhoupad/config.h b/keyboards/pimentoso/touhoupad/config.h new file mode 100644 index 000000000..8fd4e7811 --- /dev/null +++ b/keyboards/pimentoso/touhoupad/config.h | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* Copyright 2021 Michele Ferri <zomgsako@gmail.com> | ||
| 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 0xD00D | ||
| 22 | #define PRODUCT_ID 0x0031 | ||
| 23 | #define DEVICE_VER 0x0001 | ||
| 24 | #define MANUFACTURER Pimentoso | ||
| 25 | #define PRODUCT TouhouPad rev2 | ||
| 26 | |||
| 27 | #define MATRIX_ROWS 1 | ||
| 28 | #define MATRIX_COLS 10 | ||
| 29 | |||
| 30 | #define MATRIX_ROW_PINS { D4 } | ||
| 31 | #define MATRIX_COL_PINS { C6,D7,E6,B4,B6,B2,B3,B1,F7,F6 } | ||
| 32 | |||
| 33 | #define DIODE_DIRECTION COL2ROW | ||
| 34 | |||
| 35 | #define RGB_DI_PIN F4 | ||
| 36 | #ifdef RGB_DI_PIN | ||
| 37 | #define RGBLED_NUM 12 | ||
| 38 | #define RGBLIGHT_HUE_STEP 8 | ||
| 39 | #define RGBLIGHT_SAT_STEP 8 | ||
| 40 | #define RGBLIGHT_VAL_STEP 8 | ||
| 41 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 42 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 43 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 44 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 45 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 46 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 47 | #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 48 | #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 49 | #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 50 | #endif | ||
| 51 | |||
| 52 | #define DEBOUNCE 5 | ||
diff --git a/keyboards/pimentoso/touhoupad/info.json b/keyboards/pimentoso/touhoupad/info.json new file mode 100644 index 000000000..71698cee9 --- /dev/null +++ b/keyboards/pimentoso/touhoupad/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "TouhouPad", | ||
| 3 | "url": "https://github.com/Pimentoso/TouhouPad_v2", | ||
| 4 | "maintainer": "Pimentoso", | ||
| 5 | "width": 8.25, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"label":"esc", "x":5.25, "y":0}, {"label":"enter", "x":6.25, "y":0}, {"label":"slow", "x":0, "y":1}, {"label":"fire", "x":1, "y":1}, {"label":"rapid", "x":2, "y":1}, {"label":"up", "x":6.25, "y":1.75}, {"label":"left", "x":5.25, "y":2.75}, {"label":"down", "x":6.25, "y":2.75}, {"label":"right", "x":7.25, "y":2.75}, {"label":"bomb", "x":3.25, "y":3}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/pimentoso/touhoupad/keymaps/default/keymap.c b/keyboards/pimentoso/touhoupad/keymaps/default/keymap.c new file mode 100644 index 000000000..0d1005511 --- /dev/null +++ b/keyboards/pimentoso/touhoupad/keymaps/default/keymap.c | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* Copyright 2021 Michele Ferri <zomgsako@gmail.com> | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | LAYOUT( /* Base */ | ||
| 20 | KC_LSFT, KC_Z, KC_C, KC_X, KC_LEFT, KC_DOWN, KC_RIGHT, KC_UP, KC_ENT, LT(1, KC_ESC) | ||
| 21 | ), | ||
| 22 | LAYOUT( /* RGB controls */ | ||
| 23 | KC_NO, KC_NO, KC_NO, KC_NO, RGB_TOG, RGB_VAD, RGB_MOD, RGB_VAI, KC_NO, KC_NO | ||
| 24 | ) | ||
| 25 | }; | ||
diff --git a/keyboards/pimentoso/touhoupad/keymaps/default/readme.md b/keyboards/pimentoso/touhoupad/keymaps/default/readme.md new file mode 100644 index 000000000..00bf43cb9 --- /dev/null +++ b/keyboards/pimentoso/touhoupad/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for 4pack | |||
diff --git a/keyboards/pimentoso/touhoupad/readme.md b/keyboards/pimentoso/touhoupad/readme.md new file mode 100644 index 000000000..7e122c327 --- /dev/null +++ b/keyboards/pimentoso/touhoupad/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # TouhouPad | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 10 key gamepad specifically for playing Touhou danmaku games. | ||
| 6 | |||
| 7 | You can find building instructions and gerber files to print the circuit board on the [project page.](https://github.com/Pimentoso/TouhouPad_v2) | ||
| 8 | |||
| 9 | * Keyboard Maintainer: [Michele Ferri](https://github.com/Pimentoso) | ||
| 10 | * Hardware Supported: Paddino02 PCB rev1, rev2 + Arduino Pro Micro | ||
| 11 | * Hardware Availability: the PCB is open source and can be freely printed at websites such as [JLCPCB](https://jlcpcb.com/) | ||
| 12 | |||
| 13 | Make example for this keyboard (after setting up your build environment): | ||
| 14 | |||
| 15 | make pimentoso/touhoupad:default | ||
| 16 | |||
| 17 | The gamepad case is completely exposed on the underside, so to enter bootloader mode, just short the RST and GND pins of the pro micro using a metal object. | ||
| 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). | ||
diff --git a/keyboards/pimentoso/touhoupad/rules.mk b/keyboards/pimentoso/touhoupad/rules.mk new file mode 100644 index 000000000..806a19af3 --- /dev/null +++ b/keyboards/pimentoso/touhoupad/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = no # 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 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/pimentoso/touhoupad/touhoupad.c b/keyboards/pimentoso/touhoupad/touhoupad.c new file mode 100644 index 000000000..a7c7fa073 --- /dev/null +++ b/keyboards/pimentoso/touhoupad/touhoupad.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2021 Michele Ferri <zomgsako@gmail.com> | ||
| 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 "touhoupad.h" | ||
diff --git a/keyboards/pimentoso/touhoupad/touhoupad.h b/keyboards/pimentoso/touhoupad/touhoupad.h new file mode 100644 index 000000000..5a5f233e3 --- /dev/null +++ b/keyboards/pimentoso/touhoupad/touhoupad.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright 2021 Michele Ferri <zomgsako@gmail.com> | ||
| 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 | #define LAYOUT(k00, k01, k02, k03, k04, k05, k06, k07, k08, k09) \ | ||
| 21 | { \ | ||
| 22 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09 } \ | ||
| 23 | } | ||
