39
PICAXE
PICAXE
Lighthouse Beacon
–Program #6
symbol bulb = 2
symbol some = 110
start:
pwmout bulb,0,0
b2=1
for b1=255 to 0 step -b2
    b2=b2+3
    pause some
    pwmout bulb,b1,b2
next b1
b2=1
pwmout bulb, 255,1022 :pause 140
for b1=1 to 255 step b2
    b2=b2+3
    pwmout bulb,b1,b2
    pause some
next b1
pwmout bulb,0,0
pause 2000
goto start:
Minimal discussion of software – OK to copy/paste
Show Lighthouse bulbs on foam demo #9