Matt Lesslaw
/
AtlasScientific
Testbed for an Atlas Scientific Conductivity Probe with an LM35 temperature sensor
Revision 0:ce74f6d4cf3e, committed 2013-11-06
- 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 |
diff -r 000000000000 -r ce74f6d4cf3e main.cpp --- /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)); + +}
diff -r 000000000000 -r ce74f6d4cf3e mbed.bld --- /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