LCDOUT - BASIC Stamp Command Reference
Page 172
•
BASIC Stamp Programming Manual 2.0b
•
www.parallaxinc.com
LCD's Character RAM or Display RAM. The following is an example of
the LCDOUT command:
LCDOUT 1, 1, ["Hello World!"]
The above code will clear the LCD screen and then send "Hello World!" to
the screen. The first argument (1) is the starting I/O pin number and the
second argument (also 1) is the LCD's instruction for Clear Screen.
The LCDOUT command actually uses more than just the I/O pin specified
by the Pin argument. The LCDOUT command requires seven I/O pins.
This is because the standard LCD displays have a parallel interface, rather
than a serial one. The Pin argument can be the numbers 0, 1, 8 or 9 and
will result in the use of the I/O pins shown in Table 5.32.
Please refer to
the LCDCMD command description for information on properly wiring
the LCD display.
When the LCD is first powered-up, it will be in an unknown state and
must be properly configured before sending commands like the one
shown above. This process is known as initializing the LCD and is the
first thing your program should do upon starting up. Please refer to the
LCDCMD command description for information on properly initializing
the LCD display.
The LCDOUT command's OutputData argument is exactly like that of the
DEBUG and SEROUT command's OutputData argument. This means data
can be sent as literal text, ASCII character values, repetitive values,
decimal, hexadecimal and binary translations and string data as in the
examples below.
Value VAR BYTE
Value = 65
LCDOUT 1, 0, [Value] 'send the ASCII value for "A"
LCDOUT 1, 0, [REP Value\5] 'send the ASCII value for "A" five time, ie: "AAAAA"
LCDOUT 1, 0, [DEC Value] 'send two characters, "6" and "5"
LCDOUT 1, 0, [HEX Value] 'send two characters, "4" and "1"
LCDOUT 1, 0, [BIN Value] 'send seven characters, "1000001"
Tables 5.33 and 5.34 list all the available conversion formatters and special
formatters available to the LCDOUT command. See the DEBUG and
SEROUT commands for additional information and examples of their use.
T
WO VERY IMPORTANT STEPS
:
1) W
IRING THE
BS2
P TO AN
LCD.
2)
INITIALIZING THE
LCD.
S
ENDING AND FORMATTING DATA
.
Содержание BASIC Stamp 1
Страница 1: ...BASIC Stamp Programming Manual Version 2 0c...
Страница 30: ...Introduction to the BASIC Stamps Page 28 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 90: ...BUTTON BASIC Stamp Command Reference Page 88 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 118: ...END BASIC Stamp Command Reference Page 116 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 128: ...FREQOUT BASIC Stamp Command Reference Page 126 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 196: ...NAP BASIC Stamp Command Reference Page 194 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 206: ...OWIN BASIC Stamp Command Reference Page 204 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 214: ...OWOUT BASIC Stamp Command Reference Page 212 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 216: ...PAUSE BASIC Stamp Command Reference Page 214 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 226: ...POLLMODE BASIC Stamp Command Reference Page 224 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 232: ...POLLOUT BASIC Stamp Command Reference Page 230 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 236: ...POLLRUN BASIC Stamp Command Reference Page 234 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 240: ...POLLWAIT BASIC Stamp Command Reference Page 238 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 262: ...RCTIME BASIC Stamp Command Reference Page 260 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 274: ...RUN BASIC Stamp Command Reference Page 272 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 310: ...SEROUT BASIC Stamp Command Reference Page 308 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 324: ...STOP BASIC Stamp Command Reference Page 322 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...