Keyboard firmwares for Atmel AVR and Cortex-M
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

parser.cpp 308B

1234567891011121314
  1. #include "parser.h"
  2. #include "leonardo_led.h"
  3. #include "debug.h"
  4. void KBDReportParser::Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
  5. {
  6. LED_TX_TOGGLE;
  7. debug("KBDReport: ");
  8. for (uint8_t i = 0; i < len; i++) {
  9. debug_hex(buf[i]);
  10. debug(" ");
  11. }
  12. debug("\r\n");
  13. }