28139 Parallax Inc, 28139 Datasheet - Page 193

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
For example, to send the value 9, simply set the
Transmit_Ir_Byte
The
selects the corresponding Duration for the
first, the subroutine uses a
to 7.
Inside the
examines
a 9, the first time through the
irMessage.LOWBIT(0)
and
the fourth time through
IF...THEN
irMessage.LOWBIT(counter)
a 0.
Before each repeat of the
duration,
irMessage.LOWBIT(1)
Transmit_Ir_Byte
Transmit_Ir_Byte:
IrFreq
irMessage.LOWBIT(counter)
irMessage = 9
GOSUB Transmit_Ir_Byte
FREQOUT IrLedPin, StartBitTime, IrFreq
PAUSE BtwnPulses
FOR counter = 0 TO 7
NEXT
RETURN
Transmit_Ir_Byte
IF irMessage.LOWBIT(counter) = 1 THEN
ENDIF
FREQOUT IrLedPin,duration,IrFreq
PAUSE BtwnPulses
statement inside the loop sets the duration variable to 2 if
ELSE
duration = 2
duration = 1
sends the 38 kHz signal for the number of ms stored in the duration
.
will be 1. The second time through the loop, counter will be 1,
irMessage.LOWBIT(3
subroutine examines each bit in the
FOR...NEXT
is 0. The third time through,
FOR...NEXT
subroutine's
stores a 1, or 1 if
loop that increments the counter variable from 0
FOR...NEXT
. Assuming that the subroutine is transmitting
FREQOUT
FOR...NEXT
loop, the command
) is 1, and so on... In each case, an
irMessage.LOWBIT(counter)
command. To transmit the bits LSB-
irMessage
loop, counter will be 0, so
loop, an
irMessage.LOWBIT(2
irMessage
variable to 9, then call
FREQOUT IrLedPin
IF...THEN
variable, and
statement
) is 0;
stores
,

Related parts for 28139