LCD Display help trying to show and array
grasshopper
Posts: 438
Whats wrong with my code I want to simply display the array named "LM_TEMP" it is not displaying the correct data.
Please help
VAR LONG LM_TEMP[noparse][[/noparse]7] OBJ LCD : "LCDDEMO" PUB DISPLAY | X LM_TEMP[noparse][[/noparse] 0 ] := "1" LM_TEMP[noparse][[/noparse] 1 ] := "2" LM_TEMP[noparse][[/noparse] 2 ] := "0" LM_TEMP[noparse][[/noparse] 3 ] := "." LM_TEMP[noparse][[/noparse] 4 ] := "0" LM_TEMP[noparse][[/noparse] 5 ] := "0" X := 0 LCD.CLS LCD.writestr(@escapechar1) 'Display the characters 0-7 REPEAT X FROM 0 TO 5 LCD.writeOut(LM_TEMP[noparse][[/noparse] X ]) ' Write a single character at the current position LCD.writestr(@escap) 'Display the characters 0-7 LCD.writestr(@escapechar2) 'Display the characters 0-7 DAT escapechar1 byte "Holder = ",eos escapechar2 byte "Target = 50.00 ",$DF,"C",eos escap byte " ",$DF,"C",cr,eos
Please help
Comments