mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
BME280: Add string based constructor
Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com>
This commit is contained in:
parent
a43627454f
commit
4cb4cf9020
@ -41,6 +41,12 @@ BME280::BME280(int bus, int addr, int cs) :
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BME280::BME280(std::string initStr) :
|
||||||
|
BMP280(initStr)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BME280::~BME280()
|
BME280::~BME280()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -83,6 +83,13 @@ namespace upm {
|
|||||||
BME280(int bus=BME280_DEFAULT_I2C_BUS, int addr=BME280_DEFAULT_ADDR,
|
BME280(int bus=BME280_DEFAULT_I2C_BUS, int addr=BME280_DEFAULT_ADDR,
|
||||||
int cs=-1);
|
int cs=-1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantiates BME280 Digital Sensor based on a given string.
|
||||||
|
*
|
||||||
|
* @param initStr string containing specific information for BME280 initialization.
|
||||||
|
*/
|
||||||
|
BME280(std::string initStr);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BME280 Destructor.
|
* BME280 Destructor.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user