28122 Parallax Inc, 28122 Datasheet - Page 254

KIT WHAT'S A MICRO:PARTS ONLY

28122

Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

Specifications of 28122

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Selecting which Code Block to Execute on a Case by Case Basis
The
characters or values. Keep in mind that this is one of the tools used to convert an RTTTL
ringtone into musical notes. In general,
Here is the syntax for
You can try the next two example programs to see how
SelectCaseWithValues.bs2 takes numeric values you enter into the Debug Terminal and
it tells you the minimum variable size you will need to hold that value.
SelectCaseWithCharacters.bs2 tells you whether the character you entered into the Debug
Terminal is upper or lower case, a digit, or punctuation.
Remember to use the upper Windowpane in the Debug Terminal to transmit the
characters you type to the BASIC Stamp. The Transmit and Receive Windowpanes are
shown in Figure 8-5.
Windowpanes
SELECT…CASE
Select a variable or expression.
Evaluate that variable or expression on a case by case basis.
Execute different blocks of code depending on which case that variable’s value
fits into.
Transmit →
Receive →
statement is probably the best programming tool for recognizing
SELECT…CASE
:
SELECT…CASE
SELECT expression
ENDSELECT
CASE condition(s)
statement(s)
is used to:
SELECT…CASE
Figure 8-5
Sending Messages
to the BASIC Stamp
Click the Transmit
(upper) Windowpane
and enter the value
or characters you
want to transmit to
the BASIC Stamp.
works.

Related parts for 28122