Example program for app shield using the LM75 temperature sensor
Dependencies: C12832 LM75B mbed
Fork of app-board-LM75B by
Revision 8:e0f3f151c3cc, committed 2014-08-01
- Comitter:
- chris
- Date:
- Fri Aug 01 14:29:15 2014 +0000
- Parent:
- 7:80852d9feb4b
- Child:
- 9:f85504b3c707
- Commit message:
- Updates LM75 and mbed library versions
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 |
--- a/main.cpp Mon Feb 17 14:28:16 2014 +0000 +++ b/main.cpp Fri Aug 01 14:29:15 2014 +0000 @@ -4,14 +4,14 @@ // Using Arduino pin notation C12832 lcd(D11, D13, D12, D7, D10); -LM75B sensor(SDA,SCL); +LM75B sensor(D14,D15); int main () { while (1) { lcd.cls(); lcd.locate(0,3); - lcd.printf("Temp = %.1f\n", sensor.read()); + lcd.printf("Temp = %.1f\n", sensor.temp()); wait(1.0); } }
--- a/mbed.bld Mon Feb 17 14:28:16 2014 +0000 +++ b/mbed.bld Fri Aug 01 14:29:15 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/49a220cc26e0 +http://mbed.org/users/mbed_official/code/mbed/builds/6213f644d804 \ No newline at end of file