summaryrefslogtreecommitdiff
path: root/keyboards/handwired/hillside/0_1/config.h
diff options
context:
space:
mode:
authormmccoyd <mmccoyd@users.noreply.github.com>2022-01-08 17:29:51 -0800
committerGitHub <noreply@github.com>2022-01-08 17:29:51 -0800
commit4c1fd0897cfec6d1b09b651b372b2d5bbc03de25 (patch)
tree3734f8c9052e9be96042f340f59b68e4cc98e35f /keyboards/handwired/hillside/0_1/config.h
parentfc8346e0b3d601aadf37fd7a1e708910cee22f75 (diff)
[Keyboard] Add Hillside support (#15399)
* [Keyboard] Add Hillside * Remove no longer used define, rename README * Rename to readme.md * Readme: Improve clarity, fix grammar and typos * Readme: Remove extra line pointing to QMK docs * Readme: Join consecutive source lines in .md * Readme: split lines, post spelling fix * Keymap: fix key label in readme
Diffstat (limited to 'keyboards/handwired/hillside/0_1/config.h')
-rw-r--r--keyboards/handwired/hillside/0_1/config.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/keyboards/handwired/hillside/0_1/config.h b/keyboards/handwired/hillside/0_1/config.h
new file mode 100644
index 0000000000..c83b23d0e8
--- /dev/null
+++ b/keyboards/handwired/hillside/0_1/config.h
@@ -0,0 +1,35 @@
+// Copyright 2021 Michael McCoyd (@mmccoyd)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "config_common.h"
+
+/* key matrix size */
+// Rows are doubled-up
+#define MATRIX_ROWS 8
+#define MATRIX_COLS 6
+
+/* Encoder */
+#define ENCODERS_PAD_A { F5 }
+#define ENCODERS_PAD_B { F4 }
+#define ENCODERS_PAD_A_RIGHT { F4 }
+#define ENCODERS_PAD_B_RIGHT { F5 }
+
+#define RGBLIGHT_SLEEP
+
+/* Haptic hardware */
+// The Pimoroni is the likely hardware, for which these settings work
+#define FB_ERM_LRA 1
+#define FB_BRAKEFACTOR 3 /* 1x:0, 2x:1, 3x:2, 4x:3, 6:4, 8:5, 16:6, Disable:7 */
+#define FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */
+/* Please refer to your datasheet for optimal setting for your specific motor.*/
+#define RATED_VOLTAGE 2
+#define V_PEAK 2.8
+#define V_RMS 2.0
+#define F_LRA 205 /* resonance freq */
+
+/* Haptic waveforms */
+// Two mild waveforms
+#define DRV_GREETING alert_750ms
+#define DRV_MODE_DEFAULT sharp_tick3_60