hmm, i see what thats doing. the timeout is designed to turn the outputs off if there is no data for 2 secs. the serin really does need to wait for 250,address all the time. just waiting for 250 then using an if-then statement to check the address takes enough time to cause problems.
i suppose the only way to do it is to send a long string from the PC that includes 250 and every address that i might use (about 1 to 40 should do)





Bookmarks