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

Method readBytes

libraries/SHT85/SHT85.cpp:324–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322
323
324bool SHT::readBytes(uint8_t n, uint8_t *val)
325{
326 int rv = _wire->requestFrom(_address, (uint8_t) n);
327 if (rv == n)
328 {
329 for (uint8_t i = 0; i < n; i++)
330 {
331 val[i] = _wire->read();
332 }
333 return true;
334 }
335 _error = SHT_ERR_READBYTES;
336 return false;
337}
338
339
340

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected