61#define LRKEY_P4 0x1000
63#define LRKEY_P5 0x2000
65#define LRKEY_STOP 0x4000
67#define LRKEY_BEEP 0x8000
102#define LR_DUMMY_HANDLER ((lr_handler_t)0)
int(* lr_handler_t)(unsigned int, unsigned int)
the remote key handler type
void lr_startup(void)
start the LEGO IR Remote subsystem
lr_handler_t lr_handler
remote handler
enum _evt EventType
the LEGO IR Remote event types
void lr_set_handler(lr_handler_t handler)
set a new handler for LEGO IR Remote messages
_evt
enumerate our event types
@ LREVT_KEYON
a key on the remote was pressed
@ LREVT_KEYOFF
a key on the remote was released
void lr_init(void)
initialize the LEGO IR Remote subsystem
void lr_shutdown(void)
stop the LEGO IR Remote subsystem