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:
4:cd84739f7640
Parent:
2:9b61d0792927
Child:
7:965a2b0e477f
--- a/FastAnalogIn_LPC1768.cpp	Sat Mar 08 16:01:36 2014 +0000
+++ b/FastAnalogIn_LPC1768.cpp	Sun Apr 20 16:23:19 2014 +0000
@@ -18,6 +18,8 @@
     NC,    NC,     0
 };
 
+int FastAnalogIn::channel_usage[8] = {0,0,0,0,0,0,0,0};
+
 FastAnalogIn::FastAnalogIn(PinName pin, bool enabled)
 {
     ADCnumber = (ADCName)pinmap_peripheral(pin, PinMap_ADC);