Pages: [1]   Go Down
Author Topic: CLS command  (Read 291 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am trying to read in from the analog input.
My idea is to display the input, wait a moment, clear the screen and repeat.
The CLS and Clear commands are not working,
I have been looking but haven't found anything to make this work.
 

#include <stdlib.h> 

void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
  // print out the value you read:
  Serial.println(sensorValue);
  delay(1);        // delay in between reads for stability
  Serial.println(clear);


}

}
Logged

0
Offline Offline
Shannon Member
****
Karma: 201
Posts: 11744
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You have not given the information needed to solve the problem - what screen are you trying to clear?  Where is all your code?  Have you read the sticky thread "Read this before posting a programming question..." ?
Logged

[ I won't respond to messages, use the forum please ]

Austin, TX
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

stdlib does not do anything with the Serial Monitor...

There isn't a way to clear the Serial Monitor built into the Arduino IDE...
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Pages: [1]   Go Up
Jump to: