I want to have static text that never changes on an LCD and plop variables into spaces following the text. For example:
I want the 4-line LCD will display something similar to this: (values shown are examples)
I can post entire code, but the crux of the issue is in the print function :
void printResult(char *szVehicle, int count )
Serial.print (" count: ");
//if (strcmp(VehicleLEDs, “Car”) == 0)
lcd.setCursor (0, 0);
The print to monitor works exactly as I want it to because the println advances to the next line. The LCD version displays the two variables (szVehicle) and (count), over-writing the previous entry. This is why I wanted static text on the LCD (Cyc, Car, etc) and just plop in the count values. I have tried multiple ways to effect this: concantenation, strcmp, nothing works. I tried comparing szVehicle to a string but szVehicle comes from an array (via Struct).
I attached a screen print of the monitor results showing how the szVehicle variable changes and gets counted. Any ideas to get me one step further?