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

Method read

libraries/PCF8575/PCF8575.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86uint8_t PCF8575::read(const uint8_t pin)
87{
88 if (pin > 15)
89 {
90 _error = PCF8575_PIN_ERROR;
91 return 0;
92 }
93 PCF8575::read16();
94 return (_dataIn & (1 << pin)) > 0;
95}
96
97
98uint16_t PCF8575::value()

Callers 8

readRegMethod · 0.45
getPWMMethod · 0.45
readRegMethod · 0.45
read16Method · 0.45
unittestFunction · 0.45
analogReadMethod · 0.45
analogRead4Method · 0.45
readRegMethod · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36