28122 Parallax Inc, 28122 Datasheet - Page 258

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
How SelectCaseWithCharacters.bs2 Works
When compared to SelectCaseWithValues.bs2, this example program has a few
differences. First, the name of the
size was changed from word to byte. This is because all characters in PBASIC are byte
size. The
The quotation marks are used to tell the BASIC Stamp Editor that you are referring to
characters.
There is also one different
This
true. You can get this case to work by entering a character such as % or $.
Your Turn – Selecting Based on Ranges
RTTTL Ringtone Player Application Program
Below is the RTTTL file that contains the musical information used in the next example
program. There are five more
CASE
SELECT
Modify the
it displays “Special character” when you enter one of these characters: @, #,
$, %, ’^’ , &, *, (, ), _, or +.
statement tells the
SELECT character
SELECT character
CASE "A" to "Z"
CASE "a" to "z"
CASE "0" to "9"
CASE "!", "?", ".", ","
CASE ELSE
DEBUG CR, "Upper case", CR
DEBUG CR, "Lower case", CR
DEBUG CR, "Digit", CR
DEBUG CR, "Punctuation", CR
DEBUG CR, "Character not known.", CR,
statement chooses the
SELECT…CASE
CASE
"Try a different one."
SELECT
RTTTL_File DATA
statement that was not used in the previous example:
value
code block what to do if none of the other cases are
statement in SelectCaseWithCharacters.bs2 so that
character
variable was changed to
directives that you can try in the Your
variable for case by case evaluation.
character
, and its

Related parts for 28122