xwhatsit throught hole: disable leds
authorPurdea Andrei <andrei@purdea.ro>
Sat, 6 Jun 2020 00:27:47 +0000 (03:27 +0300)
committerPurdea Andrei <andrei@purdea.ro>
Sat, 6 Jun 2020 00:27:47 +0000 (03:27 +0300)
keyboards/xwhatsit/matrix.c

index 5e594fe..5409a61 100644 (file)
@@ -708,6 +708,13 @@ void real_keyboard_init_basic(void)
     dac_write_threshold(CAPSENSE_HARDCODED_THRESHOLD);
     dac_write_threshold(CAPSENSE_HARDCODED_THRESHOLD);
     #endif
+    #if defined(CONTROLLER_IS_THROUGHT_HOLE_BEAMSPRING)
+        // Disable on-board leds.
+        setPinOutput(D5);
+        writePin(D5, 1);
+        setPinOutput(B0);
+        writePin(B0, 1);
+    #endif
 }
 
 void matrix_init_custom(void) {