Hardware Code

Files at this revision

API Documentation at this revision

Comitter:
O_Thom
Date:
Fri Nov 23 14:42:31 2018 +0000
Parent:
5:58ba1a6dbf60
Commit message:
Working Sampler class. Potentially unsafe use of ticker inside Sampler. Multiple instances will attach to the same doISR function -> Unsafe

Changed in this revision

sample_hardware.cpp Show annotated file Show diff for this revision Revisions of this file
sample_hardware.hpp Show annotated file Show diff for this revision Revisions of this file
diff -r 58ba1a6dbf60 -r 8a08e08e4d25 sample_hardware.cpp
--- a/sample_hardware.cpp	Thu Nov 23 10:54:10 2017 +0000
+++ b/sample_hardware.cpp	Fri Nov 23 14:42:31 2018 +0000
@@ -15,7 +15,7 @@
 DigitalIn  SW1(PE_12);
 DigitalIn  SW2(PE_14);
 //Serial pc(USBTX, USBRX);
-AnalogIn adcIn(PA_0);
+AnalogIn adcIn(A0);
 
 //Environmental Sensor driver
 #ifdef BME
diff -r 58ba1a6dbf60 -r 8a08e08e4d25 sample_hardware.hpp
--- a/sample_hardware.hpp	Thu Nov 23 10:54:10 2017 +0000
+++ b/sample_hardware.hpp	Fri Nov 23 14:42:31 2018 +0000
@@ -1,7 +1,7 @@
 #ifndef __sample_hardware__
 #define __sample_hardware__
 
-//#define BME
+#define BMP
 #ifdef BME
 #include "BME280.h"
 #else