Set the ADC clock div to 8 so we actually get 1000 samples/sec on the ADC instead...
authorJim Morris <morris@wolfman.com>
Fri, 24 Jul 2015 21:50:18 +0000 (14:50 -0700)
committerJim Morris <morris@wolfman.com>
Fri, 24 Jul 2015 21:50:18 +0000 (14:50 -0700)
src/libs/Adc.cpp

index 568449e..e7ee7a5 100644 (file)
@@ -19,7 +19,7 @@ using namespace std;
 // TODO : Having the same name is confusing, should change that
 
 Adc::Adc(){
-    this->adc = new ADC(1000, 1);
+    this->adc = new ADC(1000, 8);
 }
 
 // Enables ADC on a given pin