MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / writeCmd

Method writeCmd

libraries/SHT2x/SHT2x.cpp:539–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537
538
539bool SHT2x::writeCmd(uint8_t cmd)
540{
541 _wire->beginTransmission(SHT2x_ADDRESS);
542 _wire->write(cmd);
543 if (_wire->endTransmission() != 0)
544 {
545 _error = SHT2x_ERR_WRITECMD;
546 return false;
547 }
548 return true;
549}
550
551
552bool SHT2x::writeCmd(uint8_t cmd, uint8_t value)

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected