A compilation of some hardware sensors and their shared programming interfaces.
Embed:
(wiki syntax)
Show/hide line numbers
SleepableSensor.cpp
00001 /* SleepableSensor.cpp 00002 * Tested with mbed board: FRDM-KL46Z 00003 * Author: Mark Gottscho 00004 * mgottscho@ucla.edu 00005 */ 00006 00007 #include "SleepableSensor.h" 00008 00009 SleepableSensor::SleepableSensor() : 00010 __sleeping(false) 00011 { 00012 } 00013 00014 SleepableSensor::~SleepableSensor() { } 00015 00016 bool SleepableSensor::isAsleep() { 00017 return __sleeping; 00018 }
Generated on Wed Jul 13 2022 19:24:41 by 1.7.2