Reading data from a USB Gamepad with USB-Host mode.
Fork of Nucleo_Ex04_USBPAD by
USBHost/mydebug.h
- Committer:
- jose_23991
- Date:
- 2016-04-28
- Revision:
- 2:7c1379b29ce6
- Parent:
- 0:b5f79b4f741d
File content as of revision 2:7c1379b29ce6:
#pragma once template<class SERIAL_T> void debug_hex(SERIAL_T& pc, const uint8_t* buf, int size) { for(int i = 0; i < size; i++) { pc.printf("%02x ", buf[i]); if (i%16 == 15) { pc.puts("\n"); } } pc.puts("\n"); }