Go Down

Topic: CLS command (Read 1 time) previous topic - next topic


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:

// 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:
  delay(1);        // delay in between reads for stability




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..." ?
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]


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

There isn't a way to clear the Serial Monitor built into the Arduino IDE...
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Go Up