Jon Trulson b633ecf97f th02: fix non-working driver
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>
2015-05-26 16:39:13 -07:00
..
2015-05-21 13:52:11 -07:00
2015-04-01 10:03:58 -07:00
2015-05-21 13:52:11 -07:00
2015-04-01 10:02:20 -07:00
2015-03-17 10:47:00 -07:00
2015-03-17 14:28:27 -07:00
2015-03-17 13:08:38 -07:00
2015-04-14 16:36:10 -07:00
2015-05-07 15:00:01 -07:00
2015-05-19 11:31:15 -07:00
2015-03-17 14:34:51 -07:00
2015-04-14 16:36:18 -07:00
2015-03-17 17:04:43 -07:00
2015-03-17 17:04:43 -07:00
2015-04-01 10:03:58 -07:00
2015-03-19 16:17:33 -07:00
2015-05-06 17:46:00 -07:00
2015-05-06 17:30:08 -07:00
2015-05-26 16:39:13 -07:00
2015-04-14 16:35:56 -07:00
2015-04-01 10:03:58 -07:00
2015-04-14 16:35:38 -07:00