|
libPocuter
1.0
Support library for programming the Pocuter
|
Go to the documentation of this file. 1 #ifndef POCUTERLIGHTSENSOR_H
2 #define POCUTERLIGHTSENSOR_H
@ LIGHT_TOLLERANCE_CHANGED
Definition: PocuterLightSensor.h:18
LIGHTERROR
Definition: PocuterLightSensor.h:11
virtual LIGHTERROR registerEventHandler(lightEventHandler *h, uint16_t limit, uint16_t tollerance, void *u)=0
register an event callback
void() lightEventHandler(LIGHTEVENT, void *)
Definition: PocuterLightSensor.h:22
@ LIGHTERROR_UNKNOWN
Definition: PocuterLightSensor.h:13
virtual void unregisterEventHandler()=0
unregister the event handler
options to access the Pocuter light sensor
Definition: PocuterLightSensor.h:9
@ LIGHT_UNDER_LIMIT
Definition: PocuterLightSensor.h:17
virtual uint16_t getValue()=0
poll the light value
@ LIGHTERROR_OK
Definition: PocuterLightSensor.h:12
LIGHTEVENT
Definition: PocuterLightSensor.h:15
@ LIGHT_ABOVE_LIMIT
Definition: PocuterLightSensor.h:16