From 2c3859fbf7f4253dc8d3751063e5e64145cd2a8c Mon Sep 17 00:00:00 2001 From: Stefan Date: Fri, 21 Oct 2022 03:20:47 +0200 Subject: Keychron Q3 I2C & CKLED2001 transfer speedup (#18780) --- keyboards/keychron/q3/config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'keyboards/keychron/q3') diff --git a/keyboards/keychron/q3/config.h b/keyboards/keychron/q3/config.h index 59b9e0f54b..4c62c589bd 100644 --- a/keyboards/keychron/q3/config.h +++ b/keyboards/keychron/q3/config.h @@ -31,6 +31,13 @@ #define DRIVER_ADDR_1 0b1110111 #define DRIVER_ADDR_2 0b1110100 +/* Increase I2C speed to 1000 KHz */ +#define I2C1_TIMINGR_PRESC 0U +#define I2C1_TIMINGR_SCLDEL 3U +#define I2C1_TIMINGR_SDADEL 0U +#define I2C1_TIMINGR_SCLH 15U +#define I2C1_TIMINGR_SCLL 51U + /* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */ #define PHASE_CHANNEL MSKPHASE_9CHANNEL -- cgit v1.2.3