Skip to content

please add "readHeater" function #2

@Sisyphos0

Description

@Sisyphos0

Hi,

Great Lib, thanks enjoyneering!

May I suggest addition of a "readHeater" function like this:

class HTU2xD_SHT2x_SI70xx {
public:
...
bool readHeaterEnabled(void);
...
};

bool HTU2xD_SHT2x_SI70xx::readHeaterEnabled(void){
uint8_t userRegData = _readRegister(HTU2XD_SHT2X_SI70XX_USER_READ_REG);
bool heaterEnabled = ((userRegData & HTU2XD_SHT2X_SI70XX_USER_CTRL_HEATER_ON)?true:false);
return heaterEnabled;
}

Tested with ESP32 & SHT20.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions