Go to the documentation of this file.
22 #ifndef _TemperatureSensor_H_
23 #define _TemperatureSensor_H_
28 #if defined(CONF_DSENSOR)
75 return 93.8136 - 0.122241 *
static_cast<float>(
get() >> 6);
83 float F()
const {
return C() * 1.8 + 32;}
90 int tenths()
const {
return static_cast<int>(
C() * 10.);}
97 int degrees()
const {
return static_cast<int>(
C());}
100 #else // CONF_DSENSOR
101 #warning Enable CONF_DSENSOR to use TemperatureSensor.H
102 #endif // CONF_DSENSOR
103 #endif // _TemperatureSensor_H_
Generated on Sat Mar 15 2014 11:28:19 for brickOS C++ by
1.8.1.2