// Does the Serial Monitor work in the Arduino Uno as documented ?
// Answer: Yes
//
// https://docs.wokwi.com/guides/serial-monitor
//
//
// In diagram.json is a section for the Serial Monitor.
// Using "always", turns it always on.
// Pin 0 and 1 are automatically connected to TX and RX.
//
// This project: https://wokwi.com/projects/424176849827515393
// See also the text with Mega: https://wokwi.com/projects/424176908696674305
unsigned long count;
void setup()
{
Serial.begin(115200);
Serial.println("Hello Uno");
}
void loop()
{
Serial.print(count++);
Serial.print(" ");
if(Serial.available() > 0)
{
Serial.println();
while(Serial.available() > 0)
{
int inChar = Serial.read();
if(isprint(inChar))
Serial.write(inChar);
}
Serial.println();
}
delay(1000);
}