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

Method setMidPoint

libraries/ACS712/ACS712.cpp:192–196  ·  view source on GitHub ↗

CALIBRATION MIDPOINT

Source from the content-addressed store, hash-verified

190
191// CALIBRATION MIDPOINT
192uint16_t ACS712::setMidPoint(uint16_t midPoint)
193{
194 if (midPoint <= _maxADC) _midPoint = (int) midPoint;
195 return _midPoint;
196};
197
198
199uint16_t ACS712::getMidPoint()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36