summaryrefslogtreecommitdiffstats
path: root/keyboards/evyd13/pockettype
diff options
context:
space:
mode:
authorNiek Blankers <niek@blankers.eu>2021-01-25 07:16:42 +0100
committerGitHub <noreply@github.com>2021-01-24 22:16:42 -0800
commitc1e1166991579066672c73a42ce21f8d23d96f4c (patch)
treedd3b93bd773f27ebd63cc95c16cdd54dd95dd299 /keyboards/evyd13/pockettype
parent50690b2d5c66d9e0630da928ca4f4a6d1440481d (diff)
[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.
Diffstat (limited to 'keyboards/evyd13/pockettype')
-rw-r--r--keyboards/evyd13/pockettype/pockettype.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/evyd13/pockettype/pockettype.c b/keyboards/evyd13/pockettype/pockettype.c
index 7404ac82b8..fe25a7048c 100644
--- a/keyboards/evyd13/pockettype/pockettype.c
+++ b/keyboards/evyd13/pockettype/pockettype.c
@@ -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);