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

Method writeCmd

libraries/SHT31/SHT31.cpp:308–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306
307
308bool SHT31::writeCmd(uint16_t cmd)
309{
310 _wire->beginTransmission(_address);
311 _wire->write(cmd >> 8 );
312 _wire->write(cmd & 0xFF);
313 if (_wire->endTransmission() != 0)
314 {
315 _error = SHT31_ERR_WRITECMD;
316 return false;
317 }
318 return true;
319}
320
321
322bool SHT31::readBytes(uint8_t n, uint8_t *val)

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected