Answers for "how to type data in serial monitor arduino"

0

how to type data in serial monitor arduino

char input;
 
void setup() {
    Serial.begin(9600); 
    delay(2000);  
 
    Serial.println("Type something!");
}
 
void loop() {
    if(Serial.available()){
        input = Serial.read();
        Serial.print("You typed: " );
        Serial.println(input);
    }
}
Posted by: Guest on March-03-2022

Code answers related to "how to type data in serial monitor arduino"

Browse Popular Code Answers by Language