#include <LiquidCrystal.h>
LiquidCrystal lcd(10, 9, 8, 7, 6, 5); // put your pin numbers here
// the setup routine runs once when you press reset:
void setup() {
pinMode(11, OUTPUT); // LCD CONTRAST PIN
pinMode(2, OUTPUT); // Clear To Send PIN
pinMode(3, OUTPUT); // Clock PIN
digitalWrite(2, HIGH); // CTS CONSTANT HIGH
tone(3,32); //CLOCK FREQ in HZ on PIN 3
analogWrite(11, 79); //LCD CONTRAST AMOUNT
Serial.begin(1000000);
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
}
void loop() {
//float angularVelocity;
//currentValue = analogRead(sensorPin); //CHECK
//angularVelocity =((previousValue - currentValue)*1.113065); // count * 1.113065 ARC SEC / SEC
//Serial.print(angularVelocity, 6); //6 decimal place values
//Serial.println(" ArcSec/s");
//Serial.println(" "); // new line
//previousValue = currentValue;
// when characters arrive over the serial port...
if (Serial.available()) {
// wait a bit for the entire message to arrive
delay(100);
// clear the screen
lcd.clear();
// read all the available characters
while (Serial.available() > 0) {
// display each character to the LCD
lcd.write(Serial.read());
}
}
}