A compilation of some hardware sensors and their shared programming interfaces.
Diff: SleepableSensor.cpp
- Revision:
- 0:8d34cc2ff388
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SleepableSensor.cpp Sun Mar 16 01:48:59 2014 +0000 @@ -0,0 +1,18 @@ +/* SleepableSensor.cpp + * Tested with mbed board: FRDM-KL46Z + * Author: Mark Gottscho + * mgottscho@ucla.edu + */ + +#include "SleepableSensor.h" + +SleepableSensor::SleepableSensor() : + __sleeping(false) + { +} + +SleepableSensor::~SleepableSensor() { } + +bool SleepableSensor::isAsleep() { + return __sleeping; +} \ No newline at end of file