Skip to content

Commit

Permalink
[Keyboard] Fix for LEDs on PocketType (qmk#11671)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kartoffel authored and sowbug committed Jan 26, 2021
1 parent ca8d70b commit 521753f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keyboards/evyd13/pockettype/pockettype.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ void matrix_init_kb(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
setPinOutput(F5);
writePinHigh(F5);
Expand Down

0 comments on commit 521753f

Please sign in to comment.