Go to the documentation of this file.
22 #ifndef _LightSensor_H_
23 #define _LightSensor_H_
28 #if defined(CONF_DSENSOR)
69 unsigned int sample(
unsigned int size = 10,
int wait = 2)
const {
70 if (size == 0) size = 1;
71 unsigned int sum(
get());
72 for (
unsigned int i = 1; i < size; ++i) {
81 #warning Enable CONF_DSENSOR to use LightSensor.H
82 #endif // CONF_DSENSOR
83 #endif // _LightSensor_H_
Generated on Sat Mar 15 2014 11:28:19 for brickOS C++ by
1.8.1.2