Closed GoogleCodeExporter closed 8 years ago
function: /* * CDCprintHex * Sends to serial a hex number formated in ascii * * * parameters * value - the value to be printed in CDC * maximum value of unsigned 32 * returns * void */ void CDCprintHex(long int value) { char array[12]; char count = 0; for(count = 0; count < 8 ; count++) { int digit = ((value >> (count*4)) & 0xF); int arrayIndex = 7 - count; if(digit > 9) { array[arrayIndex] = 0x57 + digit; } else { array[arrayIndex] = 0x30 + digit; } } array[8] = '\n'; array[9] = '\r'; CDCputs(&array[0],10); } in _cdc.c CDC.printHex CDCprintHex#include <__cdc.c> in usb.pdf32
Original issue reported on code.google.com by tine...@gmail.com on 3 Sep 2012 at 8:02
tine...@gmail.com
This is not an issue, however we could talk about it on the forum : http://forum.pinguino.cc/showthread.php?tid=3886
Original comment by rblanchot@gmail.com on 23 Apr 2013 at 9:10
rblanchot@gmail.com
Original issue reported on code.google.com by
tine...@gmail.com
on 3 Sep 2012 at 8:02