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:
3:53bf66c0e0f6
Parent:
0:4ee0a6513a17
Child:
4:a7d0ee55d5cd
--- a/PCF8591.h	Fri Nov 15 10:33:06 2013 +0000
+++ b/PCF8591.h	Fri Nov 15 10:35:09 2013 +0000
@@ -14,12 +14,8 @@
  * int main(void) {
  *
  *    while(1) {
- *       // read analog value (keep trying until valid)
- *       int val;
- *       do {
- *          val = pcf.read(PCF8591::A0);
- *          wait(0.01);
- *       } while(val == -1);
+ *       // read analog value
+ *       int val = pcf.read(PCF8591::A0);
  *
  *       // do something with value...
  *    }