mirror of
https://github.com/eclipse/upm.git
synced 2025-07-16 00:31:12 +03:00
Added initial interfaces and some sensors implementing them
This commit is contained in:

committed by
Serban Waltter

parent
85608a9f61
commit
e7820f2831
@ -99,6 +99,12 @@ HTU21D::getTemperature(int bSampleData)
|
||||
return (float)m_temperature / 1000;
|
||||
}
|
||||
|
||||
float
|
||||
HTU21D::getTemperature()
|
||||
{
|
||||
return getTemperature(0);
|
||||
}
|
||||
|
||||
float
|
||||
HTU21D::getHumidity(int bSampleData)
|
||||
{
|
||||
@ -108,6 +114,12 @@ HTU21D::getHumidity(int bSampleData)
|
||||
return (float)m_humidity / 1000;
|
||||
}
|
||||
|
||||
float
|
||||
HTU21D::getHumidity()
|
||||
{
|
||||
return getHumidity(0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Use the compensation equation from the datasheet to correct the
|
||||
* current reading
|
||||
|
Reference in New Issue
Block a user