pour donner à etudiants

Dependencies:   TMP102 mbed

Fork of TMP102HelloWorld by Chris Styles

Committer:
chris
Date:
Thu Apr 19 10:17:56 2012 +0000
Revision:
0:89f745be63a8
Child:
1:9b49379e8bf6

        

Who changed what in which revision?

UserRevisionLine numberNew 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 }