28139 Parallax Inc, 28139 Datasheet - Page 60

KIT REMOTE IR FOR BOE-BOT W/TEXT

28139

Manufacturer Part Number
28139
Description
KIT REMOTE IR FOR BOE-BOT W/TEXT
Manufacturer
Parallax Inc
Datasheets

Specifications of 28139

Accessory Type
IR Remote
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
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 28139