summaryrefslogtreecommitdiff
path: root/keyboards/mechwild/sugarglider/config.h
diff options
context:
space:
mode:
authorKyle McCreery <mccreery.kyle@gmail.com>2023-03-15 11:49:14 -0400
committerGitHub <noreply@github.com>2023-03-15 15:49:14 +0000
commit915d7a18d757ddb22498d66b82c6309077cdb178 (patch)
treede405b5d4b2ed31c09c52bb1691ef789aff70d04 /keyboards/mechwild/sugarglider/config.h
parente62fc866dbac6b558b328be14e8096835c3aadc7 (diff)
[Keyboard] New Keyboard - Sugar Glider (#19933)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> Co-authored-by: jack <0x6a73@protonmail.com>
Diffstat (limited to 'keyboards/mechwild/sugarglider/config.h')
-rw-r--r--keyboards/mechwild/sugarglider/config.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/keyboards/mechwild/sugarglider/config.h b/keyboards/mechwild/sugarglider/config.h
new file mode 100644
index 0000000000..dc3a85a728
--- /dev/null
+++ b/keyboards/mechwild/sugarglider/config.h
@@ -0,0 +1,41 @@
+// Copyright 2023 Kyle McCreery
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#define DYNAMIC_KEYMAP_LAYER_COUNT 5
+
+/* Matrix COL and ROW definitions */
+#define MATRIX_ROWS 9
+#define MATRIX_COLS 6
+
+/* Cirque Touchpad Settings */
+#define POINTING_DEVICE_AUTO_MOUSE_ENABLE
+#define CIRQUE_PINNACLE_ATTENUATION EXTREG__TRACK_ADCCONFIG__ADC_ATTENUATE_2X
+
+/* Define custom font */
+#define OLED_FONT_H "keyboards/mechwild/sugarglider/glcdfont.c"
+
+/* allows the "key" button on the blackpill to toggle caps lock for user testing before soldering */
+#define DIP_SWITCH_PINS { A0 }
+
+/* TAPPING_TERM value is used for the CIRQUE_PINNACLE_TAPPING_TERM as well by default
+ * defining it this way allows us to easily modify it with DYNAMIC_TAPPING_TERM_ENABLE
+ */
+#define TAPPING_TERM 0
+#define CIRQUE_PINNACLE_TAP_ENABLE
+#define POINTING_DEVICE_GESTURES_SCROLL_ENABLE
+
+/* spi config */
+#define SPI_DRIVER SPID1
+#define SPI_SCK_PIN A5
+#define SPI_SCK_PAL_MODE 5
+#define SPI_MOSI_PIN A7
+#define SPI_MOSI_PAL_MODE 5
+#define SPI_MISO_PIN A6
+#define SPI_MISO_PAL_MODE 5
+#define CIRQUE_PINNACLE_SPI_DIVISOR 8
+#define CIRQUE_PINNACLE_SPI_CS_PIN A3
+
+/* Force NKRO */
+#define FORCE_NKRO