summaryrefslogtreecommitdiff
path: root/keyboards/input_club
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-09-14 17:02:40 +1000
committerGitHub <noreply@github.com>2023-09-14 08:02:40 +0100
commit76daf29ef0820438902eb64027c403cc3e37b892 (patch)
tree3b67a3c9ba6632c84958f30f49678fc87eeaa070 /keyboards/input_club
parentf9ed1e3ebc66b568a20848ae0f07052fbef5e4a8 (diff)
Add and use PWM frequency defines for ISSI LED drivers (#22009)
Diffstat (limited to 'keyboards/input_club')
-rw-r--r--keyboards/input_club/k_type/is31fl3733-dual.c2
-rw-r--r--keyboards/input_club/k_type/is31fl3733-dual.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/keyboards/input_club/k_type/is31fl3733-dual.c b/keyboards/input_club/k_type/is31fl3733-dual.c
index dd1e268cd6..2976f5aed4 100644
--- a/keyboards/input_club/k_type/is31fl3733-dual.c
+++ b/keyboards/input_club/k_type/is31fl3733-dual.c
@@ -57,7 +57,7 @@
#endif
#ifndef IS31FL3733_PWM_FREQUENCY
-# define IS31FL3733_PWM_FREQUENCY 0b000 // PFS - IS31FL3733B only
+# define IS31FL3733_PWM_FREQUENCY IS31FL3733_PWM_FREQUENCY_8K4_HZ // PFS - IS31FL3733B only
#endif
#ifndef IS31FL3733_SWPULLUP
diff --git a/keyboards/input_club/k_type/is31fl3733-dual.h b/keyboards/input_club/k_type/is31fl3733-dual.h
index fa58d653c9..a5ef3ff008 100644
--- a/keyboards/input_club/k_type/is31fl3733-dual.h
+++ b/keyboards/input_club/k_type/is31fl3733-dual.h
@@ -55,6 +55,12 @@ void is31fl3733_update_led_control_registers(uint8_t addr, uint8_t index);
#define IS31FL3733_PUR_16KR 0x06 // 16k Ohm resistor on all the time
#define IS31FL3733_PUR_32KR 0x07 // 32k Ohm resistor in t_NOL
+#define IS31FL3733_PWM_FREQUENCY_8K4_HZ 0x00
+#define IS31FL3733_PWM_FREQUENCY_4K2_HZ 0x01
+#define IS31FL3733_PWM_FREQUENCY_26K7_HZ 0x02
+#define IS31FL3733_PWM_FREQUENCY_2K1_HZ 0x03
+#define IS31FL3733_PWM_FREQUENCY_1K05_HZ 0x04
+
#define A_1 0x00
#define A_2 0x01
#define A_3 0x02