the bani crew
/
Humerboard_Temperatursensor
aff
Revision 0:4bdf0e0398e6, committed 2017-04-21
- Comitter:
- TFuchsbichler
- Date:
- Fri Apr 21 06:19:03 2017 +0000
- Commit message:
- Richtig
Changed in this revision
diff -r 000000000000 -r 4bdf0e0398e6 LM75B.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LM75B.lib Fri Apr 21 06:19:03 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/chris/code/LM75B/#6a70c9303bbe
diff -r 000000000000 -r 4bdf0e0398e6 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Apr 21 06:19:03 2017 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" +#include "LM75B.h" + +LM75B tempsensor(p28,p27); +Serial pc(USBTX, USBRX); + +int main() { + pc.baud(115200); + while(1) { + pc.printf("%.3f\r\n",tempsensor.read()); + wait_ms(100); + + } +}
diff -r 000000000000 -r 4bdf0e0398e6 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Apr 21 06:19:03 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7 \ No newline at end of file