70016 Parallax Inc, 70016 Datasheet - Page 60

TEXT INFRARED REMOTE FOR BOE-BOT

70016

Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 70016

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
For Use With
29122 - KIT PARTS IR REMOTE FOR BOE-BOT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
70016SE
Manufacturer:
ST
0
Example Program – SetAndClearWithDotBit.bs2
Figure 2-4 shows an example of what you can do with SetAndClearWithDotBit.bs2. By
typing a digit into the Transmit Windowpane when prompted for the "bit index" you can
select the bit in the
the Transmit Windowpane when prompted for "1 to set or 0 to clear", you can control
whether the bit in
The program will pause for half a second, then refresh the display.
' IR Remote for the Boe-Bot - SetAndClearWithDotBit.bs2
' Use the Debug Terminal's Transmit Windowpane to choose a bit in
' the value variable and set or clear it.
'{$STAMP BS2}
'{$PBASIC 2.5}
value
index
setClear
Enter, save, and run SetAndClearWithDotBit.bs2.
When the prompt "Type bit index (0 to 7): " appears, decide which bit you want
to change, and type that digit.
When the prompt "Type 1 to set or 0 to clear: " appears, type the 1 or 0 key.
Check and make sure the change you entered appears in the "Binary value".
Experiment with setting and clearing bits in the "Binary value".
VAR
VAR
VAR
value
value
is set to 1 or cleared to 0.
Byte
Nib
Bit
variable that you want to change. Then, by typing a 1 or 0 into
Figure 2-4
Clearing and Setting
Bits in a Byte with the
Debug Terminal
Use the Transmit
Windowpane
reply
prompts.
to
the
to

Related parts for 70016