Not a bad idea to set the SerialOut pin to it's idle state before the first time you'll use it... unless the first character might be screwed-up...
Code:BUT1 VAR PORTB.1 'vars for switches BUT2 VAR PORTB.2 BUT3 VAR PORTB.3 BUT4 VAR PORTB.4 HIGH PORTA.0 ' set to normal idle state (1 for True, 0 for Inverted) PAUSE 50 'settle delay LOOP: IF BUT1 = 1 THEN SEROUT PORTA.0,T2400,[9,1] 'sends 9 and 1 if but1 is high IF BUT1 = 2 THEN SEROUT PORTA.0,T2400,[9,2] IF BUT1 = 3 THEN SEROUT PORTA.0,T2400,[9,3] IF BUT1 = 4 THEN SEROUT PORTA.0,T2400,[9,4] GOTO LOOP




Bookmarks