diff options
author | Ryan <fauxpark@gmail.com> | 2023-07-21 09:41:02 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 09:41:02 +1000 |
commit | 39679e055d803fcd0fda3669088df694e0e31b2c (patch) | |
tree | e4c06867348da1db27a04b9d7a34dd2ba8db3a30 /keyboards/handwired/riblee_f401 | |
parent | 4137685f8eb3ecde7ba0158a78cd9c411ee05606 (diff) |
Fix backlight support for some boards (#21554)
Diffstat (limited to 'keyboards/handwired/riblee_f401')
-rw-r--r-- | keyboards/handwired/riblee_f401/config.h | 3 | ||||
-rw-r--r-- | keyboards/handwired/riblee_f401/halconf.h | 3 | ||||
-rw-r--r-- | keyboards/handwired/riblee_f401/info.json | 1 | ||||
-rw-r--r-- | keyboards/handwired/riblee_f401/mcuconf.h | 6 |
4 files changed, 11 insertions, 2 deletions
diff --git a/keyboards/handwired/riblee_f401/config.h b/keyboards/handwired/riblee_f401/config.h index c39cbc87f5..3e384e5b5b 100644 --- a/keyboards/handwired/riblee_f401/config.h +++ b/keyboards/handwired/riblee_f401/config.h @@ -16,4 +16,7 @@ #pragma once +#define BACKLIGHT_PWM_DRIVER PWMD5 +#define BACKLIGHT_PWM_CHANNEL 1 + #define MOUSEKEY_INTERVAL 32 diff --git a/keyboards/handwired/riblee_f401/halconf.h b/keyboards/handwired/riblee_f401/halconf.h index 3c20471df1..b537d56c26 100644 --- a/keyboards/handwired/riblee_f401/halconf.h +++ b/keyboards/handwired/riblee_f401/halconf.h @@ -23,5 +23,6 @@ #define SERIAL_USB_BUFFERS_SIZE 256 -#include_next <halconf.h> +#define HAL_USE_PWM TRUE +#include_next <halconf.h> diff --git a/keyboards/handwired/riblee_f401/info.json b/keyboards/handwired/riblee_f401/info.json index 4ff8ec21f6..933973d5f3 100644 --- a/keyboards/handwired/riblee_f401/info.json +++ b/keyboards/handwired/riblee_f401/info.json @@ -17,7 +17,6 @@ }, "diode_direction": "COL2ROW", "backlight": { - "driver": "software", "pin": "A0", "levels": 5 }, diff --git a/keyboards/handwired/riblee_f401/mcuconf.h b/keyboards/handwired/riblee_f401/mcuconf.h new file mode 100644 index 0000000000..674f5e362f --- /dev/null +++ b/keyboards/handwired/riblee_f401/mcuconf.h @@ -0,0 +1,6 @@ +#pragma once + +#include_next <mcuconf.h> + +#undef STM32_PWM_USE_TIM5 +#define STM32_PWM_USE_TIM5 TRUE |