starttime:
pause 500 ; wait for display to initialise
serout B.0,N2400,(254,1) 'clear display
pause 30
serout B.0,N2400,(254,131) ; move to end of first line
serout B.0,N2400,("START TIME") ;first line of code
serout B.0,N2400,(254,197) ; move to end of first line
serout B.0,N2400,("000") ;first line of code
pause 500

countdown2:
let count_down = count_down-1 ;minus 1 from Count down
serout B.0,N2400,(254,130) ; move to end of first line
serout B.0,N2400,("Count down") ;first line of code
bintoascii count_down,b1,b2,b3
serout B.0,N2400,(254,192) ; move to end of first line
serout B.0,N2400,("Total:",b1,b2,b3)
If count_down =0 then Buttons
pause 500

New Member

I am using a 18m2, I have the same programme working on another circuit which works fine. This circuit is not sending anything to pin B.0 (0LED). I tried the circuit above and nothing worked I am still getting 'serial OLED, www.picaxe.com. It is like it is not clearing the 0LED?

starttime:
pause 500 ; wait for display to initialise
serout B.0,N2400,(254,1) 'clear display
pause 30
serout B.0,N2400,(254,131) ; move to end of first line
serout B.0,N2400,("START TIME") ;first line of code
serout B.0,N2400,(254,197) ; move to end of first line
serout B.0,N2400,("000") ;first line of code
pause 500

countdown2:
let count_down = count_down-1 ;minus 1 from Count down
serout B.0,N2400,(254,130) ; move to end of first line
serout B.0,N2400,("Count down") ;first line of code
bintoascii count_down,b1,b2,b3
serout B.0,N2400,(254,192) ; move to end of first line
serout B.0,N2400,("Total:",b1,b2,b3)
If count_down =0 then Buttons
pause 500

Technical Support

;input C7 - not using
serout B.0,N2400,(254,1);set B.0, as output for LCD

That SEROUT is erroneously placed and will execute before the OLED completes its power-up sequence. That could be causing the OLED driver to see a corrupted data stream which messes things up from then on.

The line of code seems to be where it should be later, so perhaps delete this SEROUT command.

But it would still be best to try the simpler code suggested in Post #2.

New Member

New Member

Hi, I thought I would let you know that it works. I went to make another PCB and when I looked at the acetate PCB noticed a small line across one of the tracks, which I could not see on the soldered PCB. Soldered it up and now works ahhh. Thanks for all your help.
Bean