16 lines
266 B
C++
16 lines
266 B
C++
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);
|
|
}
|
|
}
|