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
Diff: FastAnalogIn_LPC408X.cpp
- Revision:
- 7:965a2b0e477f
- Parent:
- 5:55274430c8df
--- a/FastAnalogIn_LPC408X.cpp Mon Apr 21 10:02:07 2014 +0000 +++ b/FastAnalogIn_LPC408X.cpp Mon Apr 21 10:26:49 2014 +0000 @@ -19,7 +19,7 @@ {NC , NC , 0 } }; -int FastAnalogIn::channel_usage[8] = {0,0,0,0,0,0,0,0}; +static int channel_usage[8] = {0,0,0,0,0,0,0,0}; FastAnalogIn::FastAnalogIn(PinName pin, bool enabled) { @@ -125,3 +125,4 @@ } #endif //defined TARGET_LPC408X +