Quote Originally Posted by med2007 View Post
On the side, could you tell me the correct syntax to poll portb in a for..next loop?
viz
FOR i = 0 to 7
IF portb.[i]=0 THEN GOSUB alarm
NEXT i
This doesn't work and I can't find the answer in the book
http://www.picbasic.co.uk/forum/showthread.php?t=544