Warranty
Parallax warrants its products against defects in materials and workmanship for a period of 90 days. If you discover a defect, Parallax will,
at its option, repair, replace, or refund the purchase price. Simply call our sales department for an RMA number, write it on the label and
return the product with a description of the problem. We will return your product, or its replacement, using the same shipping method used
to ship the product to Parallax (for instance, if you ship your product via overnight express, we will do the same).
This warranty does not apply if the product has been modified or damaged by accident, abuse, or misuse.
14-Day Money-Back Guarantee
If, within 14 days of having received your product, you find that it does not suit your needs, you may return it for a refund. Parallax will
refund the purchase price of the product, excluding shipping/handling costs. This does not apply if the product has been altered or
damaged.
Copyrights and Trademarks
Copyright © 2002 by Parallax, Inc. All rights reserved. Javelin and PBASIC are trademarks of Parallax, Inc., and BASIC Stamp is a
registered trademark or Parallax, Inc. Windows is a registered trademark of Microsoft Corporation. Java and all Java-based marks are
trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. HyperTerminal is a registered trademark of
Hilgraeve. Palm is a registered trademark of 3COM. Other brand and product names are trademarks or registered trademarks of their
respective holders.
Disclaimer of Liability
Parallax, Inc. is not responsible for special, incidental, or consequential damages resulting from any breach of warranty, or under any legal
theory, including lost profits, downtime, goodwill, damage to or replacement of equipment or property, and any costs of recovering,
reprogramming, or reproducing any data stored in or used with Parallax products.
Internet Access
We maintain Internet systems for your convenience. These may be used to obtain software, communicate with members of Parallax, and
communicate with other customers. Access information is shown below:
Web:
http://www.parallaxinc.com
http://www.stampsinclass.com
http://www.javelinstamp.com
Internet Javelin Stamp Discussion List
We maintain a Javelin Stamp discussion list for people interested in Javelin Stamps. Many people subscribe to the list, and all questions
and answers to the list are distributed to all subscribers. It’s a fun, fast, and free way to discuss Javelin Stamp issues. To subscribe to the
Javelin Stamps List, visit the Tech Support section of the Parallax, Inc website. This manual is valid with the following software and
firmware versions: Javelin Stamp IDE v2.0, Javelin Stamp firmware v$50
The information herein will usually apply to newer versions but may not apply to older versions. New software can be obtained free on our
ftp and web site (ftp.parallaxinc.com, www.parallaxinc.com). If you have any questions about what you need to upgrade your product,
please contact Parallax.
Table of Contents
Preface...............................................................................................................................................xiii
Manual Organization ........................................................................................................................xiii
Java Programmers – READ THIS................................................................................................... xiv
BASIC Stamp Enthusiasts – READ THIS ........................................................................................ xv
Manual Conventions ........................................................................................................................ xv
Resources and Technical Support .................................................................................................. xvi
Free Downloads from www.javalinstamp.com ................................................................................ xvi
Acknowledgements ......................................................................................................................... xvi
1: Introduction......................................................................................................................................1
The Javelin Stamp and Its Features ..................................................................................................1
TM
Programming Language - Java for the Javelin Stamp....................................................................2
Javelin Stamp Integrated Development Environment ........................................................................2
Virtual Peripherals..............................................................................................................................3
Background VPs.............................................................................................................................3
Foreground VPs .............................................................................................................................3
How the Javelin Stamp Works ...........................................................................................................3
Javelin Stamp Hardware ....................................................................................................................4
Equipment and System Requirements...............................................................................................5
Useful Hardware ................................................................................................................................6
2: Javelin Quick Start ........................................................................................................................11
Hardware Setup ...............................................................................................................................11
Installing the Javelin Stamp IDE ......................................................................................................15
Running the Javelin Stamp IDE and Loading a Test Program.........................................................18
Debugging Environment...................................................................................................................21
Online Help ......................................................................................................................................25
I/O Example .....................................................................................................................................25
Did That Work? – Trouble Shooting.................................................................................................27
Where to Next? ................................................................................................................................30
3: Beginners Guide to Embedded Java Programming...................................................................31
The Class Wrapper and Main Method .............................................................................................31
Declaring Constants, Variables, and Arrays ....................................................................................32
Performing Calculations ...................................................................................................................34
Making Decisions .............................................................................................................................35
Repetitive Operations.......................................................................................................................37
Displaying Messages from the Javelin.............................................................................................40
Sending Messages to the Javelin ....................................................................................................43
Creating a Method ...........................................................................................................................44
Creating and Using a Library Class .................................................................................................48
4: Application Examples – Circuts and Programs..........................................................................51
Circuits and Example Code..............................................................................................................51
About Solderless Breadboards ........................................................................................................51
Javelin Stamp Manual v1.0
•
www.parallaxinc.com
•
Page i