summaryrefslogtreecommitdiff
path: root/keyboards/handwired
diff options
context:
space:
mode:
authorSergey Vlasov <sigprof@gmail.com>2023-01-19 02:30:58 +0300
committerGitHub <noreply@github.com>2023-01-19 10:30:58 +1100
commit272281f1a0a3d5f07e0dfa890f1af2f360ca54bf (patch)
treec6991c0f86e8cc48cb617464d9c0e240c8df1019 /keyboards/handwired
parent12f1a30d165ea89c5d8dbee916500ed1226ab56d (diff)
Add analog support for RP2040 (#19453)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/handwired')
-rw-r--r--keyboards/handwired/onekey/rp2040/config.h2
-rw-r--r--keyboards/handwired/onekey/rp2040/halconf.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/rp2040/config.h b/keyboards/handwired/onekey/rp2040/config.h
index d3e7b5c076..3168d3550f 100644
--- a/keyboards/handwired/onekey/rp2040/config.h
+++ b/keyboards/handwired/onekey/rp2040/config.h
@@ -20,3 +20,5 @@
#define AUDIO_PIN GP16
#define AUDIO_PWM_DRIVER PWMD0
#define AUDIO_PWM_CHANNEL RP2040_PWM_CHANNEL_A
+
+#define ADC_PIN GP26
diff --git a/keyboards/handwired/onekey/rp2040/halconf.h b/keyboards/handwired/onekey/rp2040/halconf.h
index 5890122e5e..ec56be2263 100644
--- a/keyboards/handwired/onekey/rp2040/halconf.h
+++ b/keyboards/handwired/onekey/rp2040/halconf.h
@@ -5,5 +5,6 @@
#define HAL_USE_I2C TRUE
#define HAL_USE_PWM TRUE
+#define HAL_USE_ADC TRUE
#include_next <halconf.h>