[Keyboard] Fix for LEDs on PocketType (#11671)
The LED anodes of the pockettype are connected to the bus voltage when a pro micro is used, but other controllers like the Elite-C (v4) connect this pin to GPIO B0. This means that LEDs do not work by default for those controllers. This commit implements a fix for that by setting the B0 pin high.
This commit is contained in:
parent
50690b2d5c
commit
c1e1166991
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ void matrix_init_kb(void) {
|
||||||
};
|
};
|
||||||
|
|
||||||
void led_init_ports(void) {
|
void led_init_ports(void) {
|
||||||
|
// * Enable LED anodes (Vbus pin is replaced by B0 on some boards)
|
||||||
|
setPinOutput(B0);
|
||||||
|
writePinHigh(B0);
|
||||||
|
|
||||||
// * Set our LED pins as output and high
|
// * Set our LED pins as output and high
|
||||||
setPinOutput(F5);
|
setPinOutput(F5);
|
||||||
writePinHigh(F5);
|
writePinHigh(F5);
|
||||||
|
|
Loading…
Reference in a new issue