28139 Parallax Inc, 28139 Datasheet - Page 61

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
DO
LOOP
How SetAndClearWithDotBit.bs2 Works
The
Terminal. The
set/cleared, and the
The rest of the commands are nested inside the main
DEBUG CLS,
DEBUGIN DEC1 index
DEBUG CR, "Type 1 to set or 0 to clear: "
DEBUGIN BIN1 setClear
IF index = 0 THEN value.BIT0 = setClear
IF index = 1 THEN value.BIT1 = setClear
IF index = 2 THEN value.BIT2 = setClear
IF index = 3 THEN value.BIT3 = setClear
IF index = 4 THEN value.BIT4 = setClear
IF index = 5 THEN value.BIT5 = setClear
IF index = 6 THEN value.BIT6 = setClear
IF index = 7 THEN value.BIT7 = setClear
PAUSE 500
value
value
index
setClear
BIN8 value, " <- Binary value", CR,
"76543210 <- Bit index", CR, CR,
"Type bit index (0 to 7): "
variable is the byte, with 8 bits that you clear and set with the Debug
index
setClear
variable stores the value that determines which bit in
VAR
VAR
VAR
variable stores a 1 or a 0.
Byte
Nib
Bit
DO…LOOP
.
value
will be

Related parts for 28139