<<<<<<<<<<<<<<<<<

irlink(devices) Animation irlink(devices)

NAME

irlink - Infrared remote controller

DESCRIPTION

The irlink class communicates with a Circuit Cellar IR- LINK transmitter/receiver. The idea behind the irlink class is to use a trainable handheld IR remote controller like the one you might already be using with your TV set and have it contain 10 or 20 of the 512 possible codes. When the keys/codes are sent, they cause specific LYMB actions to be executed.

SUPERCLASS

object

MESSAGES

key= Specifies the current key to be set or queried.

key? Returns the current key.

action=, activate_action= Specifies the name of the action to be associated with the current key.

action?, activate_action? Returns the name of the action associated with the current key.

on! Starts the processing of events generated by the remote control keypad

off! Stops the processing of remote control events

serial_port= Sets the serial port that the workstation communicates to the irlink over.

serial_port? Gets the serial port that the workstation communicates to the irlink over.

error? Returns 0 for no error, 1 for error, and 2 for warning

error_message? Returns a description of the last error

free! Closes connection to irlink and frees the instance.

EXAMPLES

This example creates an action and then specifies a remote control key that will execute this action. When the ON button on the remote control is pressed, a tick! will be sent to the some_action action. The irinit script defines

standard remote controller keys.

actions new: some_action

tick_actions = 'some_action print!;' ; irlink new: ir

key=IR_ON activate_action=some_action

on! ;

SEE ALSO


Please send comments and suggestions to
consult@rpi.edu