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

Dependencies:   mbed

main.cpp

Committer:
lawless
Date:
2013-11-06
Revision:
0:ce74f6d4cf3e

File content as of revision 0:ce74f6d4cf3e:

#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)); 
    
}