NEW 1 LCDCMD=0 2 LCDCMD=12 3 LCDCMD=1 4 E=0 5 READEE 255 6 B=121 7 IF AB 40 33 IF A=B 50 34 A=E 35 IF A=0 50 36 E=0 37 RELAY1=0 38 DELAY 10 39 GOTO 50 40 A=E 41 IF A<>0 50 42 E=1 43 RELAY1=1 44 DELAY 10 50 IF DI1=1 60 51 READEE 255 52 B=120 53 IF A=B 60 54 A=A+1 55 WRITEEE 255 56 DELAY 5 60 IF DI2=1 70 61 READEE 255 62 B=5 63 IF A=B 70 64 A=A-1 65 WRITEEE 255 66 DELAY 5 70 A=KEY 72 IF A<>0 75 73 GOTO 10 75 END 80 READAI2 81 BAVOLTS 82 A=A*100 83 D=A 84 A=B 85 A=A*10 86 A=A+D 87 D=A 88 A=C 89 A=A+D 90 RETURN 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 ------------------------------- tempcon2.tmb simple temperature controller program, uses switches at digital inputs 1 and 2 to set temperature and LM34 or LM35 temperature sensor chip at analog input 2, heater relay on relay 1