nodemecu/Debug/0x00_debug/0x00_debug.ino

17 lines
266 B
Arduino
Raw Normal View History

2022-08-23 17:25:59 +00:00
int inQuery;
void setup() {
Serial.begin(9600);
}
void loop() {
if ( Serial.available() > 0) {
inQuery = Serial.read();
Serial.print("Decimal: ");
Serial.println(inQuery);
Serial.print("Hexadecimal: ");
Serial.println(inQuery, HEX);
}
}