Serout & lcd
KenM
Posts: 657
When I download the following program the desired text is displayed on the LCD.
If I remove power, then re-apply power should the same occur?
Removing power and reapplying power the text is not displayed, cursor is at line 0 position 0.
If I hit reset, the desired text is displayed.
Pause 2000 yeilds the same result.
This is using a Parallax serial LCD.
What am I missing?
Post Edited (KenM) : 5/31/2005 2:49:36 PM GMT
If I remove power, then re-apply power should the same occur?
Removing power and reapplying power the text is not displayed, cursor is at line 0 position 0.
If I hit reset, the desired text is displayed.
Pause 2000 yeilds the same result.
This is using a Parallax serial LCD.
What am I missing?
' {$STAMP BS2p} ' {$PBASIC 2.5} ' ' T9600 CON 240 TxPin CON 0 ' -----[noparse][[/noparse] Initialization ]------------------------------------------------ Reset: PAUSE 200 ' -----[noparse][[/noparse] Program Code ]-------------------------------------------------- Main: HIGH TxPin PAUSE 100 SEROUT TxPin, T9600 , [noparse][[/noparse]12] HIGH TxPin PAUSE 100 SEROUT TxPin, T9600 , [noparse][[/noparse]"Testing 123"] END
Post Edited (KenM) : 5/31/2005 2:49:36 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Thank you....dang-it!!!!!!!!!!!!!!!!!!!!!!
Right there in the documentation..."You will need to pause 5mS in your code after sending the Form Feed command..."
Sorry for wasting your time.
The demo program is cool.
Ken