Testbed for an Atlas Scientific Conductivity Probe with an LM35 temperature sensor

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
lawless
Date:
Wed Nov 06 20:44:04 2013 +0000
Commit message:
Testbed for an Atlas Scientific Conductivity Probe

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Nov 06 20:44:04 2013 +0000
@@ -0,0 +1,39 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+
+class Atlas_Sensor {
+
+  private :
+    Serial *comm;
+    AnalogIn *temp;
+
+    public:
+    
+    Atlas_Sensor(Serial *s, AnalogIn *t) {
+        s->baud(38400);
+        s->format(8, Serial::None, 1);
+        this->comm = s;
+        this->temp = t;
+    }
+    
+    ~Atlas_Sensor() {
+    }
+    
+    void enable_led() {
+    
+    }
+    
+    void disable_led() {
+    
+    }
+    
+    
+
+};
+
+int main() {
+    
+   Atlas_Sensor *ppm = new Atlas_Sensor(new Serial(p28, p29), new AnalogIn(p20)); 
+    
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Nov 06 20:44:04 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file