premiere ebauche

Dependencies:   mbed PinDetect

Revision:
6:1a4ed88c9a4b
Parent:
5:aef1fc6c0df1
Child:
10:f0b382368614
--- a/speedlimiter.hpp	Thu Oct 25 17:43:21 2018 +0000
+++ b/speedlimiter.hpp	Thu Oct 25 22:30:50 2018 +0000
@@ -48,6 +48,11 @@
 
     float ecoEnabledAlgorithm();
     
+    inline float readAdcTest() {
+        AnalogIn adc(PF_3);
+        return adc.read();
+    }
+    
 private:
     float readAdcPedalHi();
     float readAdcPedalLo();