HEBOCON machine

Dependencies:   mbed Motorfader Servo WT2003M03

USBHost/mydebug.h

Committer:
abanum
Date:
2019-07-29
Revision:
1:312b63cf250e
Parent:
0:a30ec7d94c3a

File content as of revision 1:312b63cf250e:

#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");
}