Originally Posted by
damu
i am new to picbasic i have a code that was for picbasic but it is not running on<font color=red> picbasicpro demo versio </font color>please guide me for the same
------code---
symbol porta = 5
symbol trisa = 133
symbol portb = 6
symbol trisb =134
poke trisa, 255
poke trisb, 240
b0 var byte
start:
peek portb, b0
if bit4 = 0 then trigger
endif
goto start
trigger:
pause 500
peek portb, b0
if bit5 = 1 then send
endif
goto start
send:
peek porta, b0
if bit4 = 1 then eleven
poke portb,b0
endif
goto start
eleven:
if bit0 = 0 then ten
poke portb,11
endif
goto start
ten:
poke portb,10
goto start
end
-----------
please help