Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
192
uint16_t ACS712::setMidPoint(uint16_t midPoint)
193
{
194
if (midPoint <= _maxADC) _midPoint = (int) midPoint;
195
return _midPoint;
196
};
197
198
199
uint16_t ACS712::getMidPoint()
Callers
1
unittest
Function · 0.45
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.36