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 for F401/F411 blackpill onekey examples #10320

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion keyboards/handwired/onekey/blackpill_f401/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define UNUSED_PINS

#define BACKLIGHT_PIN A0
#define BACKLIGHT_PWM_DRIVER PWMD2
#define BACKLIGHT_PWM_DRIVER PWMD5
#define BACKLIGHT_PWM_CHANNEL 1

#define RGB_DI_PIN A1
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/onekey/blackpill_f401/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
#pragma once

#define HAL_USE_I2C TRUE
#define HAL_USE_PWM TRUE

#include_next "halconf.h"
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/blackpill_f401/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_PWM_USE_TIM5
#define STM32_PWM_USE_TIM5 TRUE
2 changes: 1 addition & 1 deletion keyboards/handwired/onekey/blackpill_f411/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define UNUSED_PINS

#define BACKLIGHT_PIN A0
#define BACKLIGHT_PWM_DRIVER PWMD2
#define BACKLIGHT_PWM_DRIVER PWMD5
#define BACKLIGHT_PWM_CHANNEL 1

#define RGB_DI_PIN A1
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/onekey/blackpill_f411/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
#pragma once

#define HAL_USE_I2C TRUE
#define HAL_USE_PWM TRUE

#include_next "halconf.h"
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/blackpill_f411/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_PWM_USE_TIM5
#define STM32_PWM_USE_TIM5 TRUE