![](/media/cache/profiles/3cb7820f34d947f7c4c3531ed72254b0.50x50_q85.jpg)
Testbed for an Atlas Scientific Conductivity Probe with an LM35 temperature sensor
Diff: main.cpp
- Revision:
- 0:ce74f6d4cf3e
--- /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)); + +}