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...


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();
}



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here