Library with PCF8591 support for the experiments for LPC812 MAX

Dependents:   lpc812_exp_solution_analog-in lpc812_exp_solution_7-segment lpc812_exp_solution_7-segment-shift lpc812_exp_solution_pwm ... more

Fork of lpc812_exp_lib_PCF8591 by EmbeddedArtists AB

Revision:
1:7eabc2242b8f
Parent:
0:4ee0a6513a17
Child:
2:8371322cbdc2
--- a/PCF8591.cpp	Thu Nov 14 12:19:26 2013 +0000
+++ b/PCF8591.cpp	Thu Nov 14 14:58:49 2013 +0000
@@ -3,6 +3,7 @@
 
 PCF8591::PCF8591(PinName sda, PinName scl, int i2cAddr) : m_i2c(sda, scl)
 {
+    m_i2c.frequency(400000);
     m_addr = i2cAddr;
 }