Library for Honeywell HIH6130 Humidity and Temperature Sensor

Fork of HIH6130 by Cameron Haegle

Files at this revision

API Documentation at this revision

Comitter:
chaegle
Date:
Tue Apr 29 23:51:48 2014 +0000
Parent:
0:7d2b947135ed
Commit message:
Changed class initialization so as to set the bus speed to 400KHz. Not doing so prohibits library from working with the FRDM- K64F platform.

Changed in this revision

HIH6130.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/HIH6130.cpp	Mon Apr 21 17:46:00 2014 +0000
+++ b/HIH6130.cpp	Tue Apr 29 23:51:48 2014 +0000
@@ -15,11 +15,12 @@
  **/
 HIH6130::HIH6130(I2C &i2c, int addr) : m_i2c(i2c), m_addr(addr)
 {
-
+    m_i2c.frequency(400000);
 }
 
 HIH6130::HIH6130(I2C &i2c): m_i2c(i2c)
-{
+{   
+    m_i2c.frequency(400000);
     m_addr = HIH6130_ADDR;
 }