diff options
Diffstat (limited to 'keyboards/pimentoso/touhoupad/config.h')
| -rw-r--r-- | keyboards/pimentoso/touhoupad/config.h | 52 |
1 files changed, 52 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 | ||
