Franz Wolf
/
app-board-LM75
BULME
Revision 6:4755c585b051, committed 2019-09-17
- Comitter:
- wf
- Date:
- Tue Sep 17 08:52:59 2019 +0000
- Parent:
- 5:608f2bf4d3f7
- Commit message:
- BULME
Changed in this revision
diff -r 608f2bf4d3f7 -r 4755c585b051 C12832.lib --- a/C12832.lib Thu Feb 06 14:05:51 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://mbed.org/users/chris/code/C12832/#7de323fa46fe
diff -r 608f2bf4d3f7 -r 4755c585b051 LM75B.lib --- a/LM75B.lib Thu Feb 06 14:05:51 2014 +0000 +++ b/LM75B.lib Tue Sep 17 08:52:59 2019 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/neilt6/code/LM75B/#fc27dc535ea9 +https://os.mbed.com/users/neilt6/code/LM75B/#7ac462ba84ac
diff -r 608f2bf4d3f7 -r 4755c585b051 main.cpp --- a/main.cpp Thu Feb 06 14:05:51 2014 +0000 +++ b/main.cpp Tue Sep 17 08:52:59 2019 +0000 @@ -1,23 +1,17 @@ #include "mbed.h" #include "LM75B.h" -#include "C12832.h" - -C12832 lcd(p5, p7, p6, p8, p11); LM75B sensor(p28,p27); Serial pc(USBTX,USBRX); int main () { - + pc.baud(9600); //Try to open the LM75B if (sensor.open()) { - printf("Device detected!\n"); - + pc.printf("Device detected!\n"); while (1) { - lcd.cls(); - lcd.locate(0,3); - lcd.printf("Temp = %.3f\n", (float)sensor); + pc.printf("Temp = %.3f\n", (float)sensor.temp()); wait(1.0); }
diff -r 608f2bf4d3f7 -r 4755c585b051 mbed.bld --- a/mbed.bld Thu Feb 06 14:05:51 2014 +0000 +++ b/mbed.bld Tue Sep 17 08:52:59 2019 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/49a220cc26e0 +https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187 \ No newline at end of file