summaryrefslogtreecommitdiff
path: root/keyboards/ryloo_studio/m0110/config.h
diff options
context:
space:
mode:
authorDavid Dai <newtonapple@gmail.com>2020-12-01 09:37:33 -0800
committerGitHub <noreply@github.com>2020-12-01 17:37:33 +0000
commit33802ab5cdebe09a05b2070cc1c0a333e5699e62 (patch)
treeb0a5f76709a865b7b9ea0f63e0786539aa505915 /keyboards/ryloo_studio/m0110/config.h
parenteaa8c18174405c4e8891b9350f87bfa3ee3da8b6 (diff)
downloadqmk_firmware-33802ab5cdebe09a05b2070cc1c0a333e5699e62.tar.gz
qmk_firmware-33802ab5cdebe09a05b2070cc1c0a333e5699e62.zip
Add support for Drop + Ryloo Studio "Hello" M0110. (#11050)
Diffstat (limited to 'keyboards/ryloo_studio/m0110/config.h')
-rwxr-xr-xkeyboards/ryloo_studio/m0110/config.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/keyboards/ryloo_studio/m0110/config.h b/keyboards/ryloo_studio/m0110/config.h
new file mode 100755
index 0000000000..754c164b6a
--- /dev/null
+++ b/keyboards/ryloo_studio/m0110/config.h
@@ -0,0 +1,64 @@
+/*
+Copyright 2020 newtonapple
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0x614D
+#define PRODUCT_ID 0x1000
+#define DEVICE_VER 0x0001
+#define MANUFACTURER Ryloo studio
+#define PRODUCT M0110
+
+/* key matrix size */
+#define MATRIX_ROWS 5
+#define MATRIX_COLS 15
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
+#define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, F7, B5, B4, D7, D6, B3, B2 }
+#define UNUSED_PINS
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* number of backlight levels */
+#define BACKLIGHT_PIN B7
+#ifdef BACKLIGHT_PIN
+# define BACKLIGHT_LEVELS 5
+#endif
+
+/* Set 0 if debouncing isn't needed */
+#define DEBOUNCE 5
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
+
+#define RGB_DI_PIN E2
+#ifdef RGB_DI_PIN
+# define RGBLIGHT_ANIMATIONS
+# define RGBLED_NUM 18
+# define RGBLIGHT_HUE_STEP 8
+# define RGBLIGHT_SAT_STEP 8
+# define RGBLIGHT_VAL_STEP 8
+# define RGBLIGHT_LIMIT_VAL 123
+#endif