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

Method write

libraries/PCF8575/PCF8575.cpp:114–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112
113
114void PCF8575::write(const uint8_t pin, const uint8_t value)
115{
116 if (pin > 15)
117 {
118 _error = PCF8575_PIN_ERROR;
119 return;
120 }
121 if (value == LOW)
122 {
123 _dataOut &= ~(1 << pin);
124 }
125 else
126 {
127 _dataOut |= (1 << pin);
128 }
129 write16(_dataOut);
130}
131
132
133uint16_t PCF8575::valueOut()

Callers 15

writeNMethod · 0.45
writeRegMethod · 0.45
readRegMethod · 0.45
getPWMMethod · 0.45
writeRegMethod · 0.45
writeReg2Method · 0.45
readRegMethod · 0.45
write16Method · 0.45
analogReadMethod · 0.45
analogRead4Method · 0.45
analogWriteMethod · 0.45
writeNMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected