summaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/rp2040
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/onekey/rp2040')
-rw-r--r--keyboards/handwired/onekey/rp2040/config.h3
-rw-r--r--keyboards/handwired/onekey/rp2040/halconf.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/handwired/onekey/rp2040/config.h b/keyboards/handwired/onekey/rp2040/config.h
index d3e7b5c076..5cbfb8dbff 100644
--- a/keyboards/handwired/onekey/rp2040/config.h
+++ b/keyboards/handwired/onekey/rp2040/config.h
@@ -3,7 +3,6 @@
#pragma once
-#include "config_common.h"
#define DEBUG_MATRIX_SCAN_RATE
@@ -20,3 +19,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>