RCX: Buttons

Processes and constants for interfacing with the four buttons on top of the RCX.

Index

Declarations

Data type BTN.PRESS

DATA TYPE BTN.PRESS

Type of all button press events.

Group BTN

Constants for the four buttons on the RCX.

Constant BTN.POWER

VAL BTN.PRESS BTN.POWER

Power button.

Constant BTN.VIEW

VAL BTN.PRESS BTN.VIEW

View button.

Constant BTN.PROGRAM

VAL BTN.PRESS BTN.PROGRAM

Program button.

Constant BTN.RUN

VAL BTN.PRESS BTN.RUN

Run button.

Constant BTN.RUN.AND.VIEW

VAL BTN.PRESS BTN.RUN.AND.VIEW

Run and View buttons

Constant BTN.VIEW.AND.PROGRAM

VAL BTN.PRESS BTN.VIEW.AND.PROGRAM

View and Program buttons.

Process buttons

PROC buttons(VAL INT delay, CHAN BTN.PRESS out!)

Read from the buttons, generate button press events on a channel.

Parameters:

VAL INT delay The frequency at which to read the buttons
CHAN BTN.PRESS out The channel buttons events are written to.