LCD problem .. Very very odd ..
JUSTINDFERGFV
Posts: 2
I have a matrix orbital GLK24064-25 Connected to a BS2SX ...
This code works fine and puts the right data in the right places ..
SEROUT 11,240,[noparse][[/noparse]254,88]
'Move cursur TO top left
SEROUT 11,240,[noparse][[/noparse]254,71,8,1]
SEROUT 11,240,[noparse][[/noparse]"CALCULATOR: Interval" ]
SEROUT 11,240,[noparse][[/noparse]254,71,1,3]
SEROUT 11,240,[noparse][[/noparse]"1. Start time ",DEC2 starthour,":",DEC2 startmin]
SEROUT 11,240,[noparse][[/noparse]254,71,22,3]
SEROUT 11,240,[noparse][[/noparse]"2. End time ",DEC2 stophour,":",DEC2 stopmin]
SEROUT 11,240,[noparse][[/noparse]254,71,1,4]
SEROUT 11,240,[noparse][[/noparse]"3. Screen time ",DEC3 screentime," Seconds"]
SEROUT 11,240,[noparse][[/noparse]254,71,1,5]
SEROUT 11,240,[noparse][[/noparse]"4. Set interval"]
But this line ..
SEROUT 11,240,[noparse][[/noparse]254,71,1,8]
SEROUT 11,240,[noparse][[/noparse]"Interval ",DEC2 intmin,":",DEC2 intsec]
simply·displays·Interval06 instead of "Interval 00:00"
It does not matter where I put it on the screen ..·· and it's driving me mad ..
Does anyone have any idea ?
·
This code works fine and puts the right data in the right places ..
SEROUT 11,240,[noparse][[/noparse]254,88]
'Move cursur TO top left
SEROUT 11,240,[noparse][[/noparse]254,71,8,1]
SEROUT 11,240,[noparse][[/noparse]"CALCULATOR: Interval" ]
SEROUT 11,240,[noparse][[/noparse]254,71,1,3]
SEROUT 11,240,[noparse][[/noparse]"1. Start time ",DEC2 starthour,":",DEC2 startmin]
SEROUT 11,240,[noparse][[/noparse]254,71,22,3]
SEROUT 11,240,[noparse][[/noparse]"2. End time ",DEC2 stophour,":",DEC2 stopmin]
SEROUT 11,240,[noparse][[/noparse]254,71,1,4]
SEROUT 11,240,[noparse][[/noparse]"3. Screen time ",DEC3 screentime," Seconds"]
SEROUT 11,240,[noparse][[/noparse]254,71,1,5]
SEROUT 11,240,[noparse][[/noparse]"4. Set interval"]
But this line ..
SEROUT 11,240,[noparse][[/noparse]254,71,1,8]
SEROUT 11,240,[noparse][[/noparse]"Interval ",DEC2 intmin,":",DEC2 intsec]
simply·displays·Interval06 instead of "Interval 00:00"
It does not matter where I put it on the screen ..·· and it's driving me mad ..
Does anyone have any idea ?
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
When I move the serout commands about it's always the last one that's corrupted .. by putting a pause 100 halfway through the commands it all goes right again ...··· It it possible I've filled the buffer on the LCD screen ?
·· This would be easy to enough to try by simply adding the pause...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com