Little Robot Friends
Arduino Library Reference
version 1.1
|
Contains all the built-in handlers that control how the LRF responds to different events. More...
#include <Arduino.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | LRFEventHandler )(void) |
Function pointer with no parameters and no return value. More... | |
Enumerations | |
enum | LRFEvent |
Constants for different interaction and system events. More... | |
LRFEventHandler |
This function pointer type is compatible with how the LRF handling events. Used in conjunction with a setEventHandler function, this allows you to create a custom handler for events.
Usage:
void myEventHandler(void){ lrf.doSomething(); // do something } lrf.setEventHandler(LRFEvent_Tickle, &myEventHandler);
Definition at line 89 of file LRFEventHandlers.h.
enum LRFEvent |
The LRF current features 16 unique events broken down into interaction and system events. Interaction events include things like touch events, light sensor events, mic events and IR events. System events include things like sleep, wake, powerup and boredom.
Definition at line 48 of file LRFEventHandlers.h.