We copy from Edge Impulse and paste raw image data into our Arduino programs to test if the static_buffer is working, The raw data is in the form RGB888 which is in 3 byte (float) format.
Example image raw data from Edge Impulse:
0xddddd1, 0xddded1, 0xdbdcce, 0xdbdcce, 0xd8d8cc, 0xdcdcd0, 0xddddd1, 0xdbdbcf, ...
but to serial print that same data on the Arduino for debugging purposes seems a bit confusing. I know that I could eventually write the code using some clunky convert to byte,print “0x” then 3 bytes in HEX format, correcting for non-printing zeros etc, but does anyone have a function or example of how to do it efficiently?
In the static_buffer the features array is already defined, so printing it once data has been copied to it would be a good starting point:
static const float features[] = {
// copy raw features here (for example from the 'Live classification' page)
// see https://docs.edgeimpulse.com/docs/running-your-impulse-arduino
};