From 1284828a073b5e95217e9331135fc25969159af0 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 22 Mar 2023 07:45:20 +0800 Subject: [PATCH] lotus: Change ADC threshold to 2.9 Should still have enough margin for NKRO. Measurements showed we should be good until 2.8. But some keyboards would have ghost key presses because the voltage would randomly drop slightly below 3.0 Signed-off-by: Daniel Schaefer --- keyboards/lotus/matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/lotus/matrix.c b/keyboards/lotus/matrix.c index 7ee3a86c4b..f07eea96cc 100644 --- a/keyboards/lotus/matrix.c +++ b/keyboards/lotus/matrix.c @@ -48,7 +48,7 @@ #define ADC_CH2_PIN GP28 // Voltage threshold - anything below that counts as pressed -const adc10ksample_t ADC_THRESHOLD = (adc10ksample_t) 3.0 * 10000; +const adc10ksample_t ADC_THRESHOLD = (adc10ksample_t) 2.9 * 10000; adc10ksample_t to_voltage(adcsample_t sample) { int voltage = sample * 33000;