summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-07-27 12:00:01 +0300
committerMaxim Devaev <[email protected]>2024-07-27 12:00:01 +0300
commit6a665cd62fc317c62cb2486f701f4dc7ef2de29d (patch)
tree29ed078832792bb6d7e3f3ba79c0888483582588 /hid
parent5697ae33ebcfa548d880ddc778a48ef2407b838e (diff)
fix
Diffstat (limited to 'hid')
-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;
}