122-32000 Parallax Inc, 122-32000 Datasheet - Page 99

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
change the
NOTE: you can try 18 through 23 as well, but on the Propeller Demo Board they are
connected in pairs with resistors for the VGA driver circuit, so two LEDs will blink at once.
Block Designators
You may have noticed that the backgrounds of the
differently when you entered them into the editor. This is the Propeller Tool’s way to
indicate these are distinct blocks of code.
Spin code is organized in blocks that have distinct purposes.
designators that indicate the start of a “constant block” and “public method block”,
respectively. Every block designator must start in the first column of text (the leftmost edge
of the edit pane) on a line. There are six types of blocks in the Spin language:
PUB
There can be multiple occurrences of each block type, arranged in any order desired, but there
must be at least one
,
CON
VAR
OBJ
PUB
PRI
DAT
PRI
, and
Pin
Global Constant Block. Defines symbolic constants that can be used anywhere
within the object (and in some cases outside the object) wherever numeric values
are allowed.
Global Variable Block. Defines symbolic variables that can be used anywhere
within the object wherever variables are allowed.
Object Reference Block. Defines symbolic references to other existing objects.
These are used to access those objects and the methods and constants within
them.
Public Method Block. Public methods are code routines that are accessible both
inside and outside the object. Public routines provide the interface to the object;
the way methods outside of the object interact with the object. There must be at
least one
Private Method Block. Private methods are code routines that are accessible only
inside the object. Since they are not visible from the outside, they provide a level
of encapsulation to protect critical elements within the object and help maintain
the integrity of the object’s purpose.
Data Block. Defines data tables, memory buffers, and Propeller Assembly code.
The data block’s data can be assigned symbolic names and can be accessed via
Spin code and assembly code.
DAT
constant from 16 to 17 and download again to see a different LED blink.
. The following is a list of the block designators and their purpose:
PUB
PUB
block per object. Even though the number of blocks and their order
declaration in every object.
CON
and
PUB
Propeller Manual v1.0 · Page 99
blocks of code were colored
CON
and
PUB
CON
,
are block
VAR
,
OBJ
,

Related parts for 122-32000