Ver código fonte

Merge pull request #428 from KurtE/T4_usb_keyboard_leds

T4 - USB Keyboard support LEDS
main
Paul Stoffregen 4 anos atrás
pai
commit
d960249c4d
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 6 adições e 0 exclusões
  1. +6
    -0
      teensy4/usb.c

+ 6
- 0
teensy4/usb.c Ver arquivo

@@ -627,6 +627,12 @@ static void endpoint0_complete(void)
}
}
#endif
#ifdef KEYBOARD_INTERFACE
if (setup.word1 == 0x02000921 && setup.word2 == ((1 << 16) | KEYBOARD_INTERFACE)) {
keyboard_leds = endpoint0_buffer[0];
endpoint0_transmit(NULL, 0, 0);
}
#endif
#ifdef SEREMU_INTERFACE
if (setup.word1 == 0x03000921 && setup.word2 == ((4<<16)|SEREMU_INTERFACE)
&& endpoint0_buffer[0] == 0xA9 && endpoint0_buffer[1] == 0x45

Carregando…
Cancelar
Salvar