Loading...
Pages: [1]   Go Down
Author Topic: CLS command  (Read 108 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
Tesla Member
***
Karma: 71
Posts: 6617
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

Austin, TX
Offline Offline
Faraday Member
**
Karma: 41
Posts: 5171
CMiYC
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

www.cmiyc.com - A guide to being an Enginerd

Pages: [1]   Go Up
Print
 
Jump to: