Added initial interfaces and some sensors implementing them
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
committed by
Mihai Tudor Panu
parent
6bf21a23e7
commit
f035470822
@@ -67,6 +67,11 @@ MCP9808::getTemp(){
|
||||
return getTempValue(result);
|
||||
}
|
||||
|
||||
float
|
||||
MCP9808::getTemperature() {
|
||||
return getTemp();
|
||||
}
|
||||
|
||||
void
|
||||
MCP9808::shutDown(bool sleep){
|
||||
if(sleep) this->updateConfigRegister(MCP9808_CONFIG_SHUTDOWN);
|
||||
|
||||
Reference in New Issue
Block a user