help pls cannot get this ticker to flip


Author Message
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 07:19am 30 Jun 2011      

Sparky,

Is it that you are trying to generate a square wave?

If so then maybe something like

4 pinstate = 1
5 setpin 10,8 'pin 10 as output
10 settick 10,1000
20 rem main program
30 rem doing stuff
40
60
900 goto 20
1000 rem square wave on pin 10 at set tick interval
1010 pinstate = not(pinstate)
1020 pin(10) = pinstate
1099 ireturn

I tried the above with pin 0, the power light, instead of pin 10 and with a interval of 100 it flashes away nicely.

Regards,
Anthony.