One of my final obsticles for my project is cleaning up my code and encapsulating all the serial prints to the LCD so that if i were to change it out for another LCD, minimal modification is required.
i.e. the right way to do it.
I have tried this and im not getting any errors on the compile but the arduino is locking up in random places. well, random meaning during the print function but just a different ones. I have different Print functions handling strings and ints. I reset my code back old but here were my functions i used, that wokred most of the time......
void CLSSendString(String Message){ CLS(); mySerial.print(Message); } //Clear screen then send message to LCD
void SendString(String Message){ mySerial.print(Message); } //Send message to LCD
void CLSSendint(int Integer){ CLS(); mySerial.print(Integer); } //Clear screen adn send integer to the LCD
void Sendint(int Integer){ mySerial.print(Integer); } //Send integer to the LCD
void CLS(){ mySerial.print("?f"); } //Clear screen
void Line1(){ mySerial.print("?x00?y0"); } //Move cursor to line 1
void Line2(){ mySerial.print("?x00?y1"); } //Move cursor to Line 2
Any obvious mistakes here? Are there some basic guidelines to follow here? Seems simple enough...I think actually the int wouldn't print along with the lockup issue. I try to clean up the code and i start to break it............