1. IR transceiver [index] sends message [message]

IR Transceiver - 图1

Uses the specified IR transceiver to send the specified message

How to Use

The IR transceiver can be used to send and receive messages.
Transmission distance: 6 m

The number in this block indicates the place of an IR transceiver among the ones connected to Halocode. As shown in the following figure, the number 1 indicates the first IR transceiver connected to Halocode, 2 indicates the second one, and so on.
IR Transceiver - 图2
The message to be sent can be defined. Click to set the message.

Example

When you press the space key, the first IR transceiver connected to Halocode sends the message “Hi”.

IR Transceiver - 图3

Note: IR messages can be sent and received only between devices or modules that provide the IR transmission function.


2. IR transceiver [index] message received

IR Transceiver - 图4

Reports the message received by the specified IR transceiver

How to Use

You can select the check box on the left of this block to view the message received by the specified IR transceiver on the stage.
This is a reporter block that must be used in combiantion with another block requiring data.

Example

When you press the space key, the first LED matrix connected to Halocode displays the message received by the first connected IR transceiver.
Note: Ensure that you have connected an LED matrix to Halocode.

IR Transceiver - 图5


3. IR transceiver [index] starts recording IR signal [record_id]

IR Transceiver - 图6

Uses the specified IR transceiver to record an IR signal

How to Use

The IR transceiver can be used to record IR signals. Ensure that there is a device sending IR signals when you use this block.
Numbers are provided to identify IR signals. The IR transceiver can record a maximum of two IR signals.
Transmission distance: 6 m

Example

When you press the space key, the first IR transceiver connected to Halocode starts to record an IR signal and defines the signal as signal 1.
image.png


4. IR transceiver [index] sends recorded IR signal [record_id]

IR Transceiver - 图8

Makes the specified IR transceiver send the specified recorded IR signal

How to Use

The IR transceiver can be used to record IR signals and sent the recorded signals. Ensure that the IR transceiver has recorded signals when you use this block.

Example

When you press the space key, the first IR transceiver connected to Halocode starts to send signal 1 it has recorded.

IR Transceiver - 图9


5. IR transceiver [index] detected IR remote [cmd]being pressed

IR Transceiver - 图10

Determines whether the specified IR transceiver detects that the specified letter key on the IR remote control is pressed

How to Use

This is a Boolean block that contains a condition. Use it in combination with another block that requires a condition.

Example

After pressing the space key, press key A on the IR remote control repeatedly. The first IR transceiver connected to Halocode starts to record an IR signal and defines it as signal 1.

IR Transceiver - 图11


6. IR transceiver [index] detected IR remote [cmd]being pressed

IR Transceiver - 图12

Determines whether the specified IR transceiver detects that the specified direction key on the IR remote control is pressed

How to Use

This is a Boolean block that contains a condition. Use it in combination with another block that requires a condition.

Example

After pressing the space key, press key ↑ on the IR remote control repeatedly. The first IR transceiver connected to Halocode starts to record an IR signal and defines it as signal 1.

IR Transceiver - 图13


7. IR transceiver [index]detected IR remote [cmd]being pressed

IR Transceiver - 图14

Determines whether the specified IR transceiver detects that the specified number key on the IR remote control is pressed

How to Use

This is a Boolean block that contains a condition. Use it in combination with another block that requires a condition.

Example

After pressing the space key, press key 0 on the IR remote control repeatedly. The first IR transceiver connected to Halocode starts to record an IR signal and defines it as signal 1.

IR Transceiver - 图15