Anyone care to offer comments on this.
I don't know it the wait for routine works - I get back an inverted L.
But it doesn't seem to overrun.The reading of b.3 is waiting for a switch closure.
Thanks
Al
I don't know it the wait for routine works - I get back an inverted L.
But it doesn't seem to overrun.The reading of b.3 is waiting for a switch closure.
Code:
#picaxe 18M2
#no_data
setfreq m8
pause 3500
main:
serout b.5,T9600_8,("v","+18",cr)
repeat:
if pinb.3 <> 0 then repeat
pause 3500
serout b.5,T9600_8,("s","Al's trains welcomes Kim the master scenery builder",cr)
gosub waitforready
serout b.5,T9600_8,("s","It will soon be train time.",cr)
gosub waitforready
serout b.5,T9600_8,("s","All aboard.",cr)
gosub waitforready
goto repeat
waitforready:
serin b.2,T9600_8,(":")
sertxd("received" ,b.2," ",13,10)
return
Al