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

Method _WireRead2

libraries/GY521/GY521.cpp:460–466  ·  view source on GitHub ↗

to read register of 2 bytes.

Source from the content-addressed store, hash-verified

458
459// to read register of 2 bytes.
460int16_t GY521::_WireRead2()
461{
462 int16_t tmp = _wire->read();
463 tmp <<= 8;
464 tmp |= _wire->read();
465 return tmp;
466}
467
468
469// -- END OF FILE --

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected