summaryrefslogtreecommitdiff
path: root/hid/pico/src/ph_ps2.c
diff options
context:
space:
mode:
Diffstat (limited to 'hid/pico/src/ph_ps2.c')
-rw-r--r--hid/pico/src/ph_ps2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hid/pico/src/ph_ps2.c b/hid/pico/src/ph_ps2.c
index 9eeb7902..fcb4dfbb 100644
--- a/hid/pico/src/ph_ps2.c
+++ b/hid/pico/src/ph_ps2.c
@@ -32,8 +32,9 @@
#define _KBD_DATA_PIN 11 // CLK == 12
#define _MOUSE_DATA_PIN 14 // CLK == 15
-#define _KBD_IN_DATA_PIN 26 // passthru, CLK == 27
-#define _MOUSE_IN_DATA_PIN 16 // passthru, CLK == 17
+#define _KBD_IN_DATA_PIN 26 // passthru, CLK == 27
+#define _MOUSE_IN_DATA_PIN 16 // passthru, CLK == 17
+
u8 ph_g_ps2_kbd_leds = 0;
bool ph_g_ps2_kbd_online = 0;
@@ -42,6 +43,7 @@ bool ph_g_ps2_mouse_online = 0;
u8 ph_ps2_kbd_modifiers = 0;
u8 ph_ps2_mouse_buttons = 0;
+
void tuh_kb_set_leds(u8 leds) {
ph_g_ps2_kbd_leds = leds;
}