2: Quick Start Guide
BASIC Stamp Programming Manual 2.0c
•
www.parallaxinc.com
•
Page 31
5) Enter the following two lines of PBASIC code in the editor window
(change the "BS2" to the proper name of your module, as indicated
below):
' { $STAMP BS2 }
DEBUG "Hello World!"
a) Note: The above code is written for a BASIC Stamp 2. Change the
"BS2" in the first line to BS1, BS2e, BS2sx or BS2p depending on the
model of the BASIC Stamp you are using. Failure to do this may
cause the editor to fail to recognize your BASIC Stamp during the
next step.
6) Download the program you just typed in to the BASIC Stamp. If
using the DOS software, press ALT-R to download. If using the
Windows software, press CTRL-R to download.
a) If the program is typed in correctly (and the BASIC Stamp is
connected properly) a progress bar window should appear
(perhaps very briefly) showing the download progress.
Afterwards a debug window should appear and display "Hello
World!"
b) If there is a syntax error in the program, the editor will highlight
the text in question and display an error message. Review the
error, fix the code and then try downloading again.
c) If the error reported a connection problem with the BASIC Stamp,
make sure the first line of code indicates the proper module name
and verify the programming cable connections, module
orientation (in the socket) and that it is properly powered, then try
downloading again.
7) Congratulations! You've just written and downloaded your first
BASIC Stamp program! The "Hello World!" text that appeared on the
screen was sent from the BASIC Stamp, back up the programming
cable, to the PC.
Содержание BASIC Stamp 2e
Страница 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...