Hi Guys,
Its been just short of 10 year since i last used and programmed a pic chip and i seem to be having some issues.
I am using PICAXE Editor 6 with an 08M chip on a Revolution Education board. The idea is to use 1 input and 2 outputs.
A push to make button to hold on the two outputs, one to send a signal to a relay board to switch on a 12V LED strip, and the other to power a single LED.
I have the button hooked up to input 1 (not 0) and the relay switch to output 0 and the single let to output 1
Where am i going wrong with programming?
Thanks
Its been just short of 10 year since i last used and programmed a pic chip and i seem to be having some issues.
I am using PICAXE Editor 6 with an 08M chip on a Revolution Education board. The idea is to use 1 input and 2 outputs.
A push to make button to hold on the two outputs, one to send a signal to a relay board to switch on a 12V LED strip, and the other to power a single LED.
I have the button hooked up to input 1 (not 0) and the relay switch to output 0 and the single let to output 1
Where am i going wrong with programming?
Thanks
Code:
loop1: if pin1 = 1 then goto loop2
goto loop1:
loop2: high 0
high 1
wait 10
goto loop3
loop3: if pin1 = 1 then goto loop4
goto loop3
loop4: low 0
low 1
goto loop1
Last edited: