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

Method setmVperAmp

libraries/ACS712/ACS712.cpp:300–304  ·  view source on GitHub ↗

CALIBRATION mV PER AMP Adjusting resolution AC and DC

Source from the content-addressed store, hash-verified

298// CALIBRATION mV PER AMP
299// Adjusting resolution AC and DC
300void ACS712::setmVperAmp(float mVperAmpere)
301{
302 _mVperAmpere = mVperAmpere;
303 _mAPerStep = 1000.0 * _mVperStep / _mVperAmpere;
304};
305
306
307float ACS712::getmVperAmp()

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64