Class similar to AnalogIn that uses burst mode to run continious background conversions so when the input is read, the last value can immediatly be returned. This slightly modified version allows NC pins.

Dependents:   Pinscape_Controller

Fork of FastAnalogIn by Erik -

Revision:
8:68082fdde730
Parent:
7:965a2b0e477f
Child:
9:31184aa1449c
--- a/FastAnalogIn.h	Mon Apr 21 10:26:49 2014 +0000
+++ b/FastAnalogIn.h	Sat Jun 28 13:01:27 2014 +0000
@@ -7,7 +7,7 @@
 #include "mbed.h"
 #include "pinmap.h"
 
-#if !defined TARGET_LPC1768 && !defined TARGET_KLXX && !defined TARGET_LPC408X
+#if !defined TARGET_LPC1768 && !defined TARGET_KLXX && !defined TARGET_LPC408X && !defined TARGET_LPC11UXX
     #error "Target not supported"
 #endif
 
@@ -120,7 +120,7 @@
 private:
     bool running;    
     char ADCnumber;
-    uint32_t *datareg;
+    volatile uint32_t *datareg;
 };
 
 #endif