TMP102 temperature sensor test using LPC824.
Dependencies: test_TMP102 mbed
main.cpp@2:40c813b1d6a3, 2017-11-25 (annotated)
- Committer:
- yasubumi
- Date:
- Sat Nov 25 03:28:22 2017 +0000
- Revision:
- 2:40c813b1d6a3
- Parent:
- 1:3241f6a5a51e
- Child:
- 3:600dea808e48
made class for TMP102 not optimized.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yasubumi | 0:26352a9cd499 | 1 | #include "mbed.h" |
yasubumi | 2:40c813b1d6a3 | 2 | #include "test_TMP102.h" |
yasubumi | 1:3241f6a5a51e | 3 | |
yasubumi | 2:40c813b1d6a3 | 4 | test_TMP102 tmp102(dp4,dp5); |
yasubumi | 0:26352a9cd499 | 5 | |
yasubumi | 2:40c813b1d6a3 | 6 | int main() |
yasubumi | 2:40c813b1d6a3 | 7 | { |
yasubumi | 1:3241f6a5a51e | 8 | while(1) { |
yasubumi | 2:40c813b1d6a3 | 9 | printf("Temp: %f\n\r", tmp102.read()); |
yasubumi | 0:26352a9cd499 | 10 | wait(1.0); |
yasubumi | 0:26352a9cd499 | 11 | } |
yasubumi | 0:26352a9cd499 | 12 | } |