TV_text refresh
parsko
Posts: 501
I have the attached program that is working awesome except for one thing. Note - it outputs to TV using TV_Text. It refreshes the ADC 10bit value on the first line of the TV. I want to overwrite that every time, which it does. Problems arises when I go above 3 digits (aka >1000) then back down to 3 digits (<1000), it leaves the 4th digit (it does this when it goes to two or one digit too). I can overcome this by clearing the screen, but then the same value appears to blink at a rate of roughly 5-10Hz in a diagonal manner. I know this is due to the clear screen.
Is there a way I can keep it from having the refresh/blinking effect?
-Parsko
BTW - I feel this is my first (real) object. Much thanks to folks here for answering my questions.
Is there a way I can keep it from having the refresh/blinking effect?
-Parsko
BTW - I feel this is my first (real) object. Much thanks to folks here for answering my questions.
spin
10K
Comments
This can either be done by figuring out the value to be displayed and doing the padding, or you can just overwrite each time with 3 spaces at the origin of the number. If you do this·immediately before displaying the value, the blinking should be unnoticable.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
...
Post Edited (Paul Baker) : 7/27/2006 10:45:52 PM GMT
I think I tried that and it didn't work. After having a night to sleep on it, I have determined, that using the existing objects and hardware, there is no diret route. You are right, I could "figure out" what the value is, then adjust accordingly. Not sure how fast that is though. Also not sure how fast I really need this to display right now either...
On another note:
"BS2.SHIFTIN" can be replaced by a "SERIN" command, right? I don't think it's a drag-n-drop situation, but it should work, right? I want to up the clock speed to get faster conversions...
Thanks,
-Parsko
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
Notes:· This code would go into the TV_Text object file, not your application file and, up in the VAR section, add:
BYTE TempBuffer[noparse][[/noparse]30]
Hope this works.· As always, crits and comments on my code are welcome from all.
KK
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller + Hardware - extra bits for the bit bucket =· 1 Coffeeless KaosKidd
·
Ok I looked at your code, and I see you are using the home command, this should've worked, you could try using backspace, though I dont know offhand what the behaviour of baskspacing when you at home position does, alternatively you can try to do the goto commands.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
...
Post Edited (Paul Baker) : 7/28/2006 4:56:59 PM GMT
This blanks out just the left-over digits when the value displayed is shorter
If you want a routine that right justifies a value in a field of fixed size, try
But my code gives the option of left,center or right justification and width [noparse];)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller + Hardware - extra bits for the bit bucket =· 1 Coffeeless KaosKidd
·
Now I have to spend some time with the lady... I have been on such a role this week, I hate to quit now! grrrr.....
-Parsko
Nice solution Mike, quick and elegant.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
...