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

Method writeCmd

libraries/SHT85/SHT85.cpp:310–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected