I need help with my code.
qazxsw21000
Posts: 13
' {$STAMP BS2}' {$PBASIC 2.5} z VAR Byte y VAR Byte x VAR Byte HIGH 0 PAUSE 500 a: LOW 0 SERIN 1, 2400,[x] HIGH 0 READ 0,y IF x=y THEN TOGGLE 11:TOGGLE 13 ENDIF IF x<>y THEN READ 1,z ENDIF IF x=z THEN TOGGLE 11:TOGGLE 13 ENDIF IF x<>z THEN HIGH 15 PAUSE 500 LOW 15 ENDIF PAUSE 250 GOTO a
It'll read the tags and EEPROM. But it won't compare the variables.
Comments
Before you ask again, please add some comments to your program that explain what you're trying to do. It helps you and it helps us help you. Also note that the compiler directives at the beginning each have to be on their own lines.