I'm using the picaxe AXE213 Rf Connect Kit. To the 08M tx I have two momentary switches. For reference, let's call them 'flap switch' and 'door switch'.
I want the output from the Rx 08M to flash an led on and off continuously after flap switch has been switched ON briefly. At the same time, I want to monitor the 08M
Rx output and stop the flashing if Tx door switch has been switched ON briefly. But I want the led flashing again if flap switch is momentary ON again later.
This software doesn't do the job. Your thoughts on solving this would be appreciated. Thank you from Topicaxe.
observe:
serin 2, N2400, ("xyz"), b1
inputchk:
if b1 = 2 then goto observe ;avoid led flashing; b1 = 1 when flap switch briefly ON
; b1 = 2 when door switch briefly ON
posthere: ;led flashing
high c.2
pause 100
low c.2
pause 400
goto inputchk
I want the output from the Rx 08M to flash an led on and off continuously after flap switch has been switched ON briefly. At the same time, I want to monitor the 08M
Rx output and stop the flashing if Tx door switch has been switched ON briefly. But I want the led flashing again if flap switch is momentary ON again later.
This software doesn't do the job. Your thoughts on solving this would be appreciated. Thank you from Topicaxe.
observe:
serin 2, N2400, ("xyz"), b1
inputchk:
if b1 = 2 then goto observe ;avoid led flashing; b1 = 1 when flap switch briefly ON
; b1 = 2 when door switch briefly ON
posthere: ;led flashing
high c.2
pause 100
low c.2
pause 400
goto inputchk