Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix backlight support for some boards #21554

Merged
merged 3 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
handwired/riblee_f401: use PWM backlight driver
  • Loading branch information
fauxpark committed Jul 18, 2023
commit 6ffe64ebeb23df7749dee289bfcc485ae02d71d6
3 changes: 3 additions & 0 deletions keyboards/handwired/riblee_f401/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@

#pragma once

#define BACKLIGHT_PWM_DRIVER PWMD5
#define BACKLIGHT_PWM_CHANNEL 1

#define MOUSEKEY_INTERVAL 32
3 changes: 2 additions & 1 deletion keyboards/handwired/riblee_f401/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@

#define SERIAL_USB_BUFFERS_SIZE 256

#include_next <halconf.h>
#define HAL_USE_PWM TRUE

#include_next <halconf.h>
1 change: 0 additions & 1 deletion keyboards/handwired/riblee_f401/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "software",
"pin": "A0",
"levels": 5
},
Expand Down
6 changes: 6 additions & 0 deletions keyboards/handwired/riblee_f401/mcuconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once

#include_next <mcuconf.h>

#undef STM32_PWM_USE_TIM5
#define STM32_PWM_USE_TIM5 TRUE