WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

Current

Supports current measurement.
All readings from this library are in 'amps' regardless of whether it is AC or DC.
Since all of the devices have been implemented in the same way then it means that you can swap one device for another in Project Designer. So long as you give the new device the same name as the old device then your project code will not need to be modified.
Example
Assuming you have called your sensor 'myCurrent' in Project Designer then it can be accessed as follows:-
myCurrent.read();
cout << "Current=" << myCurrent.getAmps();
Or dumped to the standard out destination using:-
cout << myCurrent;

 

Project Designer supports the following devices

 

Valid XHTML 1.0 Transitional