led = 5
x = 0
interrupt 0 , [change]
wait
[change]
if io(laststat , 0) = 0 then GOTO [PRENDIO] else GOTO [APAGAR]
wait
[PRENDIO]
PRINT "PRENDIO EL LED"
x = 1
io(po,led,x)
WAIT
[APAGAR]
PRINT "APAGA EL LED"
x = 0
io(po,led,x)
WAIT
SI TE GUSTÓ EL VÍDEO
► Suscríbete: / @tutocarlocv
REDES SOCIALES
► Facebook: / carlos.velandia.779
► Twitter: / rangocarlos