removed _wire->beginTransmission(_address); with @100 KHz -> 265 micros() without @100 KHz -> 132 micros() without @400 KHz -> 52 micros() TODO @800 KHz -> ??
| 76 | // without @400 KHz -> 52 micros() |
| 77 | // TODO @800 KHz -> ?? |
| 78 | uint8_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 | |
| 90 | void PCF8574::write8(const uint8_t value) |