schneider françois
/
TMP102HelloWorld
pour donner à etudiants
Fork of TMP102HelloWorld by
main.cpp@0:89f745be63a8, 2012-04-19 (annotated)
- Committer:
- chris
- Date:
- Thu Apr 19 10:17:56 2012 +0000
- Revision:
- 0:89f745be63a8
- Child:
- 1:9b49379e8bf6
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 0:89f745be63a8 | 1 | #include "mbed.h" |
chris | 0:89f745be63a8 | 2 | |
chris | 0:89f745be63a8 | 3 | #include "TMP102.h" |
chris | 0:89f745be63a8 | 4 | |
chris | 0:89f745be63a8 | 5 | TMP102 temperature(p9, p10, 0x90); //A0 pin is connected to ground |
chris | 0:89f745be63a8 | 6 | |
chris | 0:89f745be63a8 | 7 | int main() |
chris | 0:89f745be63a8 | 8 | { |
chris | 0:89f745be63a8 | 9 | printf("Temperature: %f\n", temperature.read()); |
chris | 0:89f745be63a8 | 10 | return 0; |
chris | 0:89f745be63a8 | 11 | } |