I wanted it to say:
I Received: 123. Sorry, I should of said that.
However I changed some stuff, and now all I want it to say is:
123
And then if it type 456 it will clear the screen and say:
456.
Not:
123456
Like it does now. Here is my code:
byte incomingByte = 0; // for incoming serial data
void setup() {
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
clearLCD(); //Command 1
}
void loop() {
//clearLCD(); //Command 2
// send data only when you receive data:
if (Serial.available()) { // read the incoming byte:
//clearLCD(); // Command 3
incomingByte = Serial.read(); // say what you got:
Serial.print(incomingByte);
}
}
void clearLCD(){
Serial.print(0xFE, BYTE); //command flag
Serial.print(0x01, BYTE); //clear command.
}
If I uncomment the second clearLCD (Command 2) as soon as I try to use a serial connection it starts printing all of these odd characters. And If I uncomment the third clearLCD (Command 3) it will only print the last character.
Just pull the ATmega168 chip out of the Arduino and it will work fine. Smiley
You'd be 'borrowing' the serial circuitry.
Really? Are you serious? I don't know that much about electronics, but it doesn't seem good to be pulling off chips.

Thank you for all your help!