I want to show two display screens of data on a 4x20 OLED display. The running of the two sub-routines is no problem within the main code.
I thought it would be nice for the first screen to "scroll off" and the second to "scroll on". I had no success with scroll on, but this code gives a nice scroll off
For testing, I am using a 2x16 screen.
Three questions I would like help with.
1 Is there a better way of doing it?
2. Is there a danger of line one overflowing to line 3 on the scroll on a 4 line display.
3 Why is it that when I move the display unit to another project with a static display, the darn thing scrolls. Reprogramming this picaxe does not stop the scroll. How do I "unscroll" the oled.
Thanks R.
I thought it would be nice for the first screen to "scroll off" and the second to "scroll on". I had no success with scroll on, but this code gives a nice scroll off
Code:
#picaxe08m2
symbol LCD=c.0
serout Lcd,N2400,(254,1) 'Clear screen
pause 500
''''''''''''''''''''''''''''''''''''''''''''''
do
gosub dis1 'Screen one
serout LCD,N2400,(254,2) 'Turn off scroll
gosub dis2 'Screen two
serout LCD,N2400,(254,2) 'Turn off scroll
loop
'''''''''''''''''''''''''''''''''''''''''''''''
dis1:
serout LCD,N2400,(254,128,"Screen one")
serout LCD,N2400,(254,192,"abcdefghijk")
pause 5000
for b0=1 to 16 'Scroll
serout Lcd,N2400,(254,28)
pause 100
next b0
'pause 500
return
''''''''''''''''''''''''''''''''''''''''''''''''''''
dis2:
serout LCD,N2400,(254,128,"SCREEN TWO")
serout LCD,N2400,(254,192,"0123456789 ")
pause 5000
for b0=1 to 16
serout Lcd,N2400,(254,28)
pause 100
next b0
'pause 500
return
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Three questions I would like help with.
1 Is there a better way of doing it?
2. Is there a danger of line one overflowing to line 3 on the scroll on a 4 line display.
3 Why is it that when I move the display unit to another project with a static display, the darn thing scrolls. Reprogramming this picaxe does not stop the scroll. How do I "unscroll" the oled.
Thanks R.