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

Method setValue

libraries/MCP4725/MCP4725.cpp:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91int MCP4725::setValue(const uint16_t value)
92{
93 if (value == _lastValue) return 0;
94 if (value > MCP4725_MAXVALUE) return MCP4725_VALUE_ERROR;
95 int rv = _writeFastMode(value);
96 if (rv == 0) _lastValue = value;
97 return rv;
98}
99
100
101uint16_t MCP4725::getValue()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36