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

Method analogWrite

libraries/PCF8591/PCF8591.cpp:205–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203
204
205bool PCF8591::analogWrite(uint8_t value)
206{
207 _wire->beginTransmission(_address);
208 _wire->write(_control);
209 _wire->write(value);
210 _error = _wire->endTransmission();
211 if (_error != 0)
212 {
213 _error = PCF8591_I2C_ERROR;
214 return false;
215 }
216 _dac = value;
217 return true;
218}
219
220
221uint8_t PCF8591::lastWrite()

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected