NEW 1 A=KEY 2 IF A=0 5 3 B=27 4 IF A=B 40 5 READSW 6 IF A=0 1 10 HEX 11 PRINT H 12 PRINT " " 13 PRINT G 14 PRINT " " 15 PRINT F 16 PRINT " " 17 PRINT E 18 PRINT " " 19 PRINT D 20 PRINT " " 21 PRINT C 22 PRINT " " 23 PRINT B 31 PRINT 13 32 PRINT 10 33 GOTO 1 40 DECIMAL this line and the lines below are comments and can be removed with a text editor or the errors caused by trying to upload them can be ignored ------------------------------- chgswhex.tmb, for the SI5150 Wait for a change in any of the switches and send the status to the serial port in hex as seven bytes. The instruction READSW sets A to 1 if a change has occurred in any of the switches since the instruction was last used. Exit program if Escape character received.