Wednesday, March 16, 2022

Get user input from Serial Monitor

 To get user input from Serial Monitor:

void setup() {
  Serial.begin(9600);

}

void loop() {
  if (Serial.available() > 0){
    String stringIn = Serial.readString();
    stringIn.toUpperCase();
    Serial.println(stringIn);
  }
}