Light on light of
Robe
Posts: 13
Hello every one
i am trying to turn a led on, off· wiht···a ·signal to the same i/o
one time for on one time for on· and so on.
Could you·please help, ·so·far i got· this
do
if in0 =1 then
high 5
pause 1000
else if in0 = 1 then
low 1
pause 1000
end if
loop
·
i am trying to turn a led on, off· wiht···a ·signal to the same i/o
one time for on one time for on· and so on.
Could you·please help, ·so·far i got· this
do
if in0 =1 then
high 5
pause 1000
else if in0 = 1 then
low 1
pause 1000
end if
loop
·
Comments
LedControl var 0
LED var 1
Start:
DO
IF LedControl = 1 THEN
HIGH LED:
PAUSE 1000:
ELSE IF LedControl = 0 THEN
LOW LED:
PAUSE 1000:
ENDIF
LOOP
END
This will change the LED's status (on or off) depending on whether or not PIN 0 is high or low.
Could you please explain your problem?
i am sending a high signal to the stamp to turn the led on
then another high signal again to turn it off and another high signal
to turn it on again, and so on i am trying to turn led off and on
with the same high signal to the same i/o over and over again.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe - Mask Designer III
National Semiconductor Corporation
(Communication Interface Division)
500 Pinnacle Court, Suite 525
Mail Stop GA1
Norcross,GA 30071
Post Edited (Beau Schwabe) : 2/26/2005 7:22:52 AM GMT