Basic INA219, with set calibaration and functions for reading raw register and write to register
Diff: INA219.h
- Revision:
- 2:94ed6c056d01
- Parent:
- 1:6b9f92e99dd7
- Child:
- 3:fc2a11f942fd
--- a/INA219.h Sun Nov 29 13:40:51 2015 +0000 +++ b/INA219.h Mon Nov 30 07:14:52 2015 +0000 @@ -1,3 +1,6 @@ + +#ifndef INA219_H +#define INA219_H /** Simplified INA219 class, fork of https://developer.mbed.org/users/mazgch/code/INA219/ from Michael Ammann . * This class is using I2CR class https://developer.mbed.org/users/ShockSoc/code/I2CR/ which is set to pins p9 (SDA) and p10 (SCL) * @@ -16,9 +19,6 @@ * @endcode */ -#ifndef INA219_H -#define INA219_H - #include "mbed.h" #include "I2CR.h"