Created
July 15, 2013 10:48
-
-
Save boxalljohn/5999113 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| main:' LCD test with phanderson.com seral controller chip - 23/03/2010 | |
| wait 5 ' it takes a moment for the chip to boot and the LCD to wake up | |
| 'serout 2, T2400, ("?S2") ' show my copyright message [as shown below] at boot | |
| 'wait 1 | |
| 'serout 2, T2400, ("?f") ' clear screen | |
| 'wait 1 | |
| 'serout 2, T2400, ("?c0") ' turns off blinking cursor | |
| 'wait 1 | |
| 'serout 2, T2400, ("?C0copyright 2010 ") ' set top line of initial boot message | |
| 'wait 1 | |
| 'serout 2, T2400, ("?C1tronixstuff.com ") ' set bottom line of initial boot message | |
| 'wait 3 | |
| serout 2,T2400,("Hello. I hope") | |
| serout 2, T2400, ("?n") | |
| serout 2, T2400,("that this works") | |
| wait 3 | |
| serout 2, T2400, ("?f") ' clear screen | |
| serout 2, T2400, ("?*") ' show boot message | |
| wait 3 | |
| serout 2, T2400, ("?f") 'clear screen | |
| serout 2, T2400, ("Close the fridge")' as this is 16 characters, you can keep sending characters and the LCD will auto scroll to the next line | |
| serout 2, T2400, ("door now please!") ' | |
| wait 3 | |
| serout 2, T2400, ("?f") ' clear screen completely for next text display | |
| goto main | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment