Pages: [1]   Go Down
Author Topic: CLS command  (Read 345 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
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:

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



Offline Offline
Shannon Member
Karma: 218
Posts: 12598
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..." ?

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

Fort Lauderdale, FL
Offline Offline
Faraday Member
Karma: 71
Posts: 6144
View Profile
 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...

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

Pages: [1]   Go Up
Jump to: