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

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
is quite flexible, typically there is only one occurrence of
multiple occurrences of
the order they are given in the list above.
The very first
from) automatically becomes the Propeller Application’s starting point; it is executed first
when the application starts. No other public or private method is executed automatically, but
rather they are executed only as determined by the natural flow of the application.
The Propeller Tool automatically colors the backgrounds of each block differently, even two
consecutive occurrences of the same block type, in order to make it easy to identify the type,
start, and end of each block. This in no way affects the actual source code itself, it is simply
an indicator for on-screen use that is intended to solve a typical problem with source code;
that is, as the code gets larger, it is harder to find a particular method quickly as you scroll up
and down through the code unless you have some kind of separator between methods. The
background color coding serves as an automatic separator that prevents you from having to
waste time typing in text-based separators manually.
Exercise 3: Output.spin - Comments
Our Output object is better now, but it still could be more readable. How about adding some
comments to the code to make it easier for other readers to understand? The next example
functions the same as before, but with a number of comments (human-readable, non-
executable text) above and to the right of our existing code.
These comments should help people figure out what it does. There are four types of
comments supported by the Propeller Tool (all of which are shown in this example):
Page 100 · Propeller Manual v1.0
'…
''…
{…}
{{…}} -
-
-
-
PUB
Multi-line code comment (curly braces).
Single-line code comment (apostrophe).
Single-line document comment (two apostrophes, NOT a quotation mark).
Multi-line document comment (two curly braces).
block in the very first object (the Top Object File where compilation starts
PUB
and
PRI
blocks, and the suggested order for typical programs is
CON
,
VAR
,
OBJ
and
DAT
blocks,

Related parts for 122-32000