Serial.flush() and Delay() are the two built-in functions. Place them in the following code to remove the garbage data printing as discussed in class.Code:char data;void setup() {// put your setup code here, to run once:Serial.begin(9600);
}
void loop() {// put your main code here, to run repeatedly:while(Serial.available()==NULL){data = Serial.read();Serial.print("given character is: ");Serial.println(data);}Serial.end();}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here