I'm having trouble doing frame differencing with my cmucam2. It seems that everything is set up ok and the lens cap is off so I don't know why this isn't working. Any help will be greatly appreciated!
'{$STAMP BS2}
'{$PBASIC 2.5}
rcv VAR Byte(10)
PAUSE 1000
SEROUT 7, 84, ["RS", CR]
PAUSE 1000
SEROUT 7, 84, ["CR 18 44",CR]
PAUSE 5000
SEROUT 7, 84, ["PM 1",CR]
PAUSE 100
SEROUT 7, 84, ["BM 1",CR]
PAUSE 100
SEROUT 7, 84, ["RM 3",CR]
PAUSE 100
DO
SEROUT 7, 84, ["LF",CR]
SEROUT 7, 84, ["FD",CR]
SERIN 9, 84, [STR rcv\10]
DEBUG CLS
DEBUG DEC rcv(2),CR
DEBUG DEC rcv(3),CR
LOOP