5: BASIC Stamp Command Reference – LCDCMD
BASIC Stamp Programming Manual 2.0c
•
www.parallaxinc.com
•
Page 163
Command Code (in binary)
Description
7
6
5
4
3
2
1
0
Clear Display
0
0
0
0
0
0
0
1
Clear entire display and move
cursor home (address 0).
Home Display
0
0
0
0
0
0
1
0
Move cursor home and return
display to home position.
Entry Mode
0
0
0
0
0
1
M
S
Sets cursor direction (M: 0=left,
1=right) and display scrolling (S:
0=no scroll, 1=scroll)
Display/Cursor 0
0
0
0
1
D
U
B
Sets display on/off (D), underline
cursor (U) and blinking block
cursor (B). (0=off, 1=on)
Scroll Display /
Shift Cursor
0
0
0
1
C M
0
0
Shifts display or cursor (C:
0=cursor, 1=display) left or right
(M: 0=left, 1=right).
Function Set
0
0
1
B
L
F
0
0
Sets buss size (B: 0=4-bits,
1=8-bits), number of lines (L:
0=1-line, 1=2-lines) and font size
(F: 0=5x8, 1=5x10)
Move To CRAM
Address
0
1
A
A
A
A
A
A
Move pointer to character RAM
location specified by address (A)
Move To DRAM
Address
1
A
A
A
A
A
A
A
Move cursor to display RAM
location specified by address (A)
On a standard 2 x 16 character display, the following command would
move the cursor to the third column of the second line:
LCDCMD 1, 128 + 66
Table 5.28: All LCD Commands (for
advanced users). These are
supported by LCDs with the Hitachi
44780 controller.
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
16
80
39
103
…
…
Line 1:
Line 2:
On-screen positions*
Off-screen positions*
2 x 16 Display
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
Line 1:
Line 2:
4 x 20 Display
Line 3:
Line 4:
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
16 17 18 19
80 81
83
36 37 38 39
100101 102103
*Assuming the display is in the home position.
82
Figure 5.13: LCD Character
Positions. NOTE: Many 1 x 16
displays conform to the position
numbers shown on Line 1 of the
2 x 16 display.
Содержание 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...