diff options
author | Stefan <ctndesigner@gmail.com> | 2022-10-21 03:20:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 18:20:47 -0700 |
commit | 2c3859fbf7f4253dc8d3751063e5e64145cd2a8c (patch) | |
tree | 3f7bf22338c973abf8a4ecb879ffbdfd63d5cb2f /keyboards/keychron/q3 | |
parent | 93a0995e485e4d2fe1cb070edffcdd8581d525ed (diff) |
Keychron Q3 I2C & CKLED2001 transfer speedup (#18780)
Diffstat (limited to 'keyboards/keychron/q3')
-rw-r--r-- | keyboards/keychron/q3/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |