Added initial interfaces and some sensors implementing them

This commit is contained in:
Mihai Stefanescu
2018-06-12 18:46:49 +03:00
committed by Serban Waltter
parent 85608a9f61
commit e7820f2831
102 changed files with 1183 additions and 182 deletions

View File

@ -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