GY-63_MS5611/libraries/SHEX/examples/SHEX_echo/SHEX_echo.ino
2021-12-28 11:19:54 +01:00

38 lines
472 B
C++

//
// FILE: SHEX_echo.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo SHEX hex dump class
// DATE: 2020-05-24
//
// this sketch echoes all incoming bytes back in hex dump format.
//
#include "SHEX.h"
// default Serial and length 16
SHEX shex;
// SHEX shex(&Serial, 8);
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
}
void loop()
{
if (Serial.available())
{
char c = Serial.read();
shex.print(c);
}
}
// -- END OF FILE --