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

Method read8

libraries/PCF8574/PCF8574.cpp:78–87  ·  view source on GitHub ↗

removed _wire->beginTransmission(_address); with @100 KHz -> 265 micros() without @100 KHz -> 132 micros() without @400 KHz -> 52 micros() TODO @800 KHz -> ??

Source from the content-addressed store, hash-verified

76// without @400 KHz -> 52 micros()
77// TODO @800 KHz -> ??
78uint8_t PCF8574::read8()
79{
80 if (_wire->requestFrom(_address, (uint8_t)1) != 1)
81 {
82 _error = PCF8574_I2C_ERROR;
83 return _dataIn; // last value
84 }
85 _dataIn = _wire->read();
86 return _dataIn;
87}
88
89
90void PCF8574::write8(const uint8_t value)

Callers 1

unittestFunction · 0.45

Calls 1

readMethod · 0.45

Tested by 1

unittestFunction · 0.36