Temperature and humidity sensor. More...
#include <sg_101020011_TemperatureAndHumiditySensor.hpp>
Public Member Functions | |
virtual | ~TemperatureAndHumiditySensor (void) |
Destructor. More... | |
TemperatureAndHumiditySensor (const std::string &n="") | |
Constructor. More... | |
TemperatureAndHumiditySensor (const TemperatureAndHumiditySensor &rhs) | |
Copy constructor. More... | |
TemperatureAndHumiditySensor & | operator= (const TemperatureAndHumiditySensor &rhs) |
Assignment. More... | |
virtual bool | is_analog (void) const |
This is always true for GroveI2CDigital. More... | |
virtual bool | is_digital (void) const |
This is always false for GroveI2CDigital. More... | |
virtual bool | is_grove_uart (void) const |
This is always false for GroveI2C. More... | |
virtual bool | is_grove_i2c (void) const |
This is always true for GroveI2C. More... | |
virtual bool | is_grove_gpio (void) const |
This is always false for GroveI2C. More... | |
virtual uint32_t | get_sku (void) const |
Return a guess as to the Seeed SKU number based on the grove type. More... | |
virtual std::string | get_type_name (void) const |
Return a short text string representing the grove type. More... | |
virtual EGroveType | get_type (void) const |
Return the grove type. More... | |
virtual std::string | get_name (void) const |
Return the user-supplied name. More... | |
virtual std::string | get_description (void) const |
Return a multi-word 1-line description of this object. More... | |
bool | operator== (const TemperatureAndHumiditySensor &rhs) const |
Test object equality. More... | |
bool | operator!= (const TemperatureAndHumiditySensor &rhs) const |
Test object equality. More... | |
bool | operator== (const GroveBase &rhs) const |
Test object equality. More... | |
bool | operator!= (const GroveBase &rhs) const |
Test object equality. More... | |
Public Attributes | |
EGroveType | grove_type |
Grove type. More... | |
std::string | grove_name |
User-supplied name. More... | |
Temperature and humidity sensor.
This is an analog sensor which needs to be connected to the I2CADC.
Description | Image |
---|---|
Chainable RGB LED connected to the Grove UART interface. The light in this example was enabled from the command-line with "sudo seeedgrove chainable_rgb_led 255 128 0" . | |
GROVE cable connects to the 'in' side of the chainable RGB LED. |
|
virtual |
Destructor.
SG::TemperatureAndHumiditySensor::TemperatureAndHumiditySensor | ( | const std::string & | n = "" | ) |
Constructor.
SG::TemperatureAndHumiditySensor::TemperatureAndHumiditySensor | ( | const TemperatureAndHumiditySensor & | rhs | ) |
Copy constructor.
|
virtualinherited |
Return a multi-word 1-line description of this object.
References SG::demangle(), SG::GroveBase::get_name(), SG::GroveBase::get_sku(), SG::GroveBase::get_type_name(), SG::GroveBase::is_grove_gpio(), SG::GroveBase::is_grove_i2c(), SG::GroveBase::is_grove_uart(), and SG::BeagleBone::Detect::to_string().
Referenced by buzzer(), chainable_rgb_led(), common_oled(), SG::GroveBase::get_name(), SG::GroveI2CDigital::GroveI2CDigital(), SG::GroveI2CDigital::read16(), SG::GroveI2CDigital::read8(), SG::GroveI2CDigital::read_block(), SG::CommonOLED::set_display_bitmap(), SG::CommonOLED::set_orientation(), temperature(), variable_led(), SG::GroveI2CDigital::write16(), SG::GroveI2CDigital::write8(), SG::GroveI2CDigital::write_block(), and SG::GroveI2CDigital::write_byte().
|
inlinevirtualinherited |
Return the user-supplied name.
References SG::GroveBase::get_description(), SG::GroveBase::grove_name, SG::GroveBase::is_grove_gpio(), SG::GroveBase::is_grove_i2c(), and SG::GroveBase::is_grove_uart().
Referenced by SG::GroveBase::get_description(), SG::GroveBase::operator=(), and SG::GroveBase::operator==().
|
inlinevirtualinherited |
Return a guess as to the Seeed SKU number based on the grove type.
References SG::get_sku_from_grove_type(), and SG::GroveBase::grove_type.
Referenced by SG::GroveBase::get_description().
|
inlinevirtualinherited |
Return the grove type.
References SG::GroveBase::grove_type.
Referenced by SG::GroveI2CDigital::get_address_from_type(), SG::GroveBase::operator=(), and SG::GroveBase::operator==().
|
inlinevirtualinherited |
Return a short text string representing the grove type.
References SG::GroveBase::grove_type, and SG::to_string().
Referenced by SG::GroveBase::get_description().
|
inlinevirtualinherited |
This is always true
for GroveI2CDigital.
Implements SG::GroveI2C.
|
inlinevirtualinherited |
This is always false
for GroveI2CDigital.
Implements SG::GroveI2C.
|
inlinevirtualinherited |
This is always false
for GroveI2C.
Implements SG::GroveBase.
References SG::GroveI2C::is_analog(), and SG::GroveI2C::is_digital().
|
inlinevirtualinherited |
This is always true
for GroveI2C.
Implements SG::GroveBase.
|
inlinevirtualinherited |
This is always false
for GroveI2C.
Implements SG::GroveBase.
|
inlineinherited |
Test object equality.
References SG::GroveBase::operator==().
|
inline |
SG::TemperatureAndHumiditySensor & SG::TemperatureAndHumiditySensor::operator= | ( | const TemperatureAndHumiditySensor & | rhs | ) |
|
inherited |
Test object equality.
References SG::GroveBase::get_name(), and SG::GroveBase::get_type().
Referenced by SG::GroveBase::operator!=(), SG::Buzzer::operator==(), operator==(), SG::TemperatureSensor::operator==(), and SG::I2CADC::operator==().
bool SG::TemperatureAndHumiditySensor::operator== | ( | const TemperatureAndHumiditySensor & | rhs | ) | const |
Test object equality.
References SG::GroveBase::operator==().
Referenced by operator!=().
|
inherited |
User-supplied name.
Referenced by SG::GroveBase::get_name(), and SG::GroveBase::operator=().
|
inherited |
Grove type.
Referenced by SG::GroveBase::get_sku(), SG::GroveBase::get_type(), SG::GroveBase::get_type_name(), and SG::GroveBase::operator=().