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

Method writeReg2

libraries/PCA9685_RT/PCA9685.cpp:322–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320
321
322void PCA9685::writeReg2(uint8_t reg, uint16_t a, uint16_t b)
323{
324 _wire->beginTransmission(_address);
325 _wire->write(reg);
326 _wire->write(a & 0xFF);
327 _wire->write((a >> 8) & 0x1F);
328 _wire->write(b & 0xFF);
329 _wire->write((b >> 8) & 0x1F);
330 _error = _wire->endTransmission();
331}
332
333
334uint8_t PCA9685::readReg(uint8_t reg)

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected