SYMBOL Display = B.7 ; Pin on external PICAXE used to send data to axe133y
init:
pause 1000 ; wait for display to initialise, found 500 wasn't long enough
main:
serout Display,n2400,(254,1) ; clear display
pause 30 ; now wait 30mS for display to fully clear
serout Display,n2400,(254,128) ; Move to line 1, position 1
serout Display,N2400,("Start Counting") ; output text
; Count from 1 to 10 and display number on bottom line.
for b0=1 to 10
serout Display,n2400,(254,192) ; Move to line 2, position 1
serout Display,N2400,(#b0) ; output b0 as text
pause 500 ; short wait before moving on to next number
next b0
; Overwrite top line with new message (long enough to overwrite original)
serout Display,n2400,(254,128) ; Move to line 1, position 1
serout Display,N2400,("Finished ") ; output text