I'm trying to flash an LED in sync with a digital camera flash.
(working on an RF remote slave flash)
I think I'm close because I can see the LED lit in the picture. But...if the sensor I'm using misses the pre-flash from the camera, it does not blink the LED that time, and next time it is out of sync.
Maybe I need to clear w1 and w2??? ... OK...how do you do that??? Or am I barking up the wrong tree altogether? Oh yeah, if you can't tell....I'm "basically" illiterate still...please help!
main:
count 3, 1, w1
if w1 = 1 then blink
goto main
blink:
pause 125
count 3, 1, w2
if w2 = 1 then flash
flash:
high 1
pause 20
low 1
pause 1000
goto main
(working on an RF remote slave flash)
I think I'm close because I can see the LED lit in the picture. But...if the sensor I'm using misses the pre-flash from the camera, it does not blink the LED that time, and next time it is out of sync.
Maybe I need to clear w1 and w2??? ... OK...how do you do that??? Or am I barking up the wrong tree altogether? Oh yeah, if you can't tell....I'm "basically" illiterate still...please help!
main:
count 3, 1, w1
if w1 = 1 then blink
goto main
blink:
pause 125
count 3, 1, w2
if w2 = 1 then flash
flash:
high 1
pause 20
low 1
pause 1000
goto main