Table of Contents
Page
ii
•
Javelin Stamp Manual v1.1
•
www.javelinstamp.com
C
REATING A
M
ETHOD
........................................................................................................... 51
C
REATING AND
U
SING A
L
IBRARY
C
LASS
............................................................................. 55
4: APPLICATION EXAMPLES – CIRCUTS AND PROGRAMS
........................................ 59
C
IRCUITS AND
E
XAMPLE
C
ODE
............................................................................................. 59
A
BOUT
S
OLDERLESS
B
READBOARDS
.................................................................................... 59
P
USHBUTTON AND
LED
R
EVISITED
...................................................................................... 61
D
IGITAL TO
A
NALOG
C
ONVERSION
...................................................................................... 63
A
NALOG TO
D
IGITAL
C
ONVERSION
...................................................................................... 64
M
EASURING
R
ESISTIVE AND
C
APACITIVE
E
LEMENTS
........................................................... 64
C
ONTROLLING A
S
ERVO WITH A
B
ACKGROUND
PWM
O
BJECT
............................................ 66
C
OMMUNICATING WITH
P
ERIPHERAL
IC
S
............................................................................. 69
C
OMMUNICATING WITH
O
THER
C
OMPUTERS
........................................................................ 74
C
OMMUNICATING WITH
P
ERIPHERAL
D
EVICES
..................................................................... 78
5: USING THE JAVELIN STAMP IDE .............................................................................. 81
S
TARTING THE
IDE ............................................................................................................... 81
S
ETTING
G
LOBAL
O
PTIONS
................................................................................................... 81
S
TARTING A
P
ROJECT
............................................................................................................ 82
B
UILDING YOUR
P
ROGRAM
................................................................................................... 86
D
EALING WITH
E
RRORS
........................................................................................................ 87
U
SING THE
D
EBUGGER TO
L
OOK
I
NSIDE THE
J
AVELIN
.......................................................... 89
A
N
E
XAMPLE
D
EBUGGING
S
ESSION
...................................................................................... 92
E
DITING
T
EXT
....................................................................................................................... 94
T
OOLBARS AND
M
ENUBARS
................................................................................................. 95
C
LASS
P
ATH
C
ONSIDERATIONS
............................................................................................. 95
W
ORKING WITH
P
ACKAGES
.................................................................................................. 96
W
ORKING WITH
P
ROJECTS
.................................................................................................... 97
6: JAVELIN STAMP PROGRAMMERS REFERENCE .................................................. 99
J
AVA
D
IFFERENCES
............................................................................................................... 99
G
ETTING
S
TARTED
................................................................................................................ 99
V
ARIABLES
,
T
YPES
,
AND
C
ONSTANTS
................................................................................ 101
Constants ........................................................................................................................ 103
Number Bases ................................................................................................................. 104
Expressions ..................................................................................................................... 104
Special Operators ........................................................................................................... 106
Comments ....................................................................................................................... 108
Control Flow .................................................................................................................. 108
Classes and Objects ....................................................................................................... 111