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

Method _command

libraries/SGP30/SGP30.cpp:376–383  ·  view source on GitHub ↗

//////////////////////////////////////////////// PRIVATE

Source from the content-addressed store, hash-verified

374// PRIVATE
375//
376int SGP30::_command(uint16_t cmd)
377{
378 _wire->beginTransmission(_address);
379 _wire->write(cmd >> 8);
380 _wire->write(cmd & 0xFF);
381 _error = _wire->endTransmission();
382 return _error;
383}
384
385
386int SGP30::_command(uint16_t cmd, uint16_t v1)

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected