28029 Parallax Inc, 28029 Datasheet - Page 331

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
' {$PBASIC 2.5}
PAUSE 250
SEROUT 14, 84, [22, 12]
PAUSE 5
SEROUT 14, 84, ["Value = ", HEX %1100011000001001]
END
Your Turn - Converting from Hexadecimal to Binary
Converting from hexadecimal to binary is a matter of using the
HEX
hexadecimal (instead of % for binary). If you are converting four hexadecimal digits to
binary, the result will be a 16-digit number. So, the
modified to display the result starting at the beginning of the second line.
, and using the
Comment the existing line of code that performs the binary to hexadecimal
conversion.
SEROUT 14, 84, ["Value = ", 148, BIN $8FE6]
$
operator to tell the BASIC Stamp Editor you are giving it a
Appendix C: Hexadecimal Character Definitions · Page 319
' Debounce power supply
' Turn on display and clear
' 5 ms delay for clearing display
SEROUT
command should also be
BIN
formatter instead of

Related parts for 28029