NEW 1 LCDCMD=0 2 LCDCMD=12 3 C=1 10 LCDCMD=1 12 A=C 13 B=10 14 A=A*B 15 B=100 16 A=A+B 17 GOSUB A 20 IF P1.2=0 30 21 IF P1.1=0 40 22 IF P1.0=0 50 23 GOTO 20 30 LCDCMD=1 31 DELAY 2 32 A=C 33 A=A+1 34 B=4 35 IF A<>B 37 36 A=3 37 C=A 38 GOTO 10 40 LCDCMD=1 41 DELAY 2 42 LCDPRN C 43 DELAY 20 44 GOTO 10 50 LCDCMD=1 51 DELAY 2 52 A=C 53 A=A-1 55 IF A<>0 57 56 A=1 57 C=A 58 GOTO 10 110 LCDPRN "I" 111 LCDPRN "T" 112 LCDPRN "E" 113 LCDPRN "M" 114 LCDPRN " " 115 LCDPRN "1" 116 RETURN 120 LCDPRN "I" 121 LCDPRN "T" 122 LCDPRN "E" 123 LCDPRN "M" 124 LCDPRN " " 125 LCDPRN "2" 126 RETURN 130 LCDPRN "I" 131 LCDPRN "T" 132 LCDPRN "E" 133 LCDPRN "M" 134 LCDPRN " " 135 LCDPRN "3" 136 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 ------------------------------- e-lcdmen.tmb For ENHANCED Tiny Machine Basic Demonstrates how to make a menu system with a limited number of displayable characters and 3 switches. Change menu items with top and bottom switches, select item with middle switch. Notice: On the T51-LCD the characters 9-16 are at cursor positions 64-71! This is typical of many LCD displays that have various line lengths and numbers of lines.