To make room for UPM C and C++ sensor code to coexist, all UPM
C++ headers have been renamed from h -> hpp. This commit contains
updates to documentation, includes, cmake collateral, examples, and
swig interface files.
* Renamed all cxx/cpp header files which contain the string
'copyright intel' from .h -> .hpp (if not already hpp).
* Replaced all references to .h with .hpp in documentation,
source files, cmake collateral, example code, and swig interface
files.
* Replaced cmake variable module_h with module_hpp.
* Intentionally left upm.h since this file currently does not
contain code (documentation only).
Signed-off-by: Noel Eck <noel.eck@intel.com>
There were a few issues with this driver, corrected in this update.
1) i2c transactions were not working - I replaced the i2c
implementation with the MRAA i2c class implementation.
2) status check was inverted - fixed.
3) fixed up #defines in header file to avoid naming collisions (ADDR,
etc).
4) Added capability to supply bus and i2c address to ctor, setting
defaults of 0, and TH02_ADDR respectively.
NOTE: For proper operation on Edison using the arduino breakout
board, the voltage needs to be set to 3.3V rather than 5v. On G2, 5v
works fine.
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>