summaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/evb_wb32fq95/config.h
diff options
context:
space:
mode:
authorJoy Lee <joylee.lc@foxmail.com>2022-11-01 12:04:15 +0800
committerGitHub <noreply@github.com>2022-11-01 15:04:15 +1100
commit9435ad19eedba9e56fa6a33989bc5c788f080e54 (patch)
tree37585fa014ae64224602d32eefe2a9407a8f7b2a /keyboards/handwired/onekey/evb_wb32fq95/config.h
parentae5f818d5a1efa321ffc0c6e659fa8fb47e79a01 (diff)
Added analog support for WB32 MCU. (#18289)
Co-authored-by: Joy <chang.li@westberrytech.com>
Diffstat (limited to 'keyboards/handwired/onekey/evb_wb32fq95/config.h')
-rw-r--r--keyboards/handwired/onekey/evb_wb32fq95/config.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/evb_wb32fq95/config.h b/keyboards/handwired/onekey/evb_wb32fq95/config.h
new file mode 100644
index 0000000000..d1f87b4e3e
--- /dev/null
+++ b/keyboards/handwired/onekey/evb_wb32fq95/config.h
@@ -0,0 +1,25 @@
+// Copyright 2022 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "config_common.h"
+
+#define ADC_PIN A0
+
+#define BACKLIGHT_PWM_DRIVER PWMD4
+#define BACKLIGHT_PWM_CHANNEL 3
+#define BACKLIGHT_PAL_MODE 2
+
+#define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4)))
+#define RGB_CI_PIN B8
+
+#define SOLENOID_PIN B12
+#define SOLENOID_PINS { B12, B13, B14, B15 }
+#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
+
+#define I2C1_SDA_PIN B7
+#define I2C1_SCL_PIN B6
+#define I2C1_SCL_PAL_MODE 4
+#define I2C1_OPMODE OPMODE_I2C
+#define I2C1_CLOCK_SPEED 100000