I'm pulsing a LED to comunicate with a Lego Programable Brick, In Visible Light Link code. When the Cable is in, I push a button, and the LED briefly flashes. When the cable is out, I push a button and the LED continues flashing, without stopping.
Also, Semi Related:
The code below is the code I'm using with the above scenario:
main:
button 0,1,200,100,b0,1,sp
Goto main
Sp:
high 4
pause 41
low 4
pause 5
high 4
pause 5
high 4
pause 5
low 4
pause 5
high 4
pause 5
low 4
pause 5
low 4
pause 5
high 4
pause 5
high 4
pause 5
low 4
pause 5
high 4
pause 5
high 4
pause 5
low 4
pause 5
high 4
pause 5
high 4
pause 5
low 4
pause 5
high 4
pause 5
low 4
pause 5
low 4
pause 5
high 4
pause 5
high 4
pause 5
low 4
pause 5
high 4
pause 5
high 4
pause 5
low 4
pause 5
high 4
pause 5
high 4
pause 5
low 4
pause 5
high 4
pause 5
high 4
pause 5
low 4
pause 5
high 4
pause 5
low 4
pause 5
low 4
pause 5
low 4
pause 5
return
Whenever the button is pushed, it flashes the led on out 4 like it should. But, when I push the button a second time, nothin happens. After a reset though, it will work for 1 push.
Edited by - jadesteffen on 17/09/2006 04:38:40