![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
温度センサのプログラム(第二版)です。 PCの画面に表示します。
Dependencies: mbed
main.cpp@4:8d32e5cf3af7, 2019-11-18 (annotated)
- Committer:
- MIKUNAGATA
- Date:
- Mon Nov 18 05:52:37 2019 +0000
- Revision:
- 4:8d32e5cf3af7
TMP102_cansat
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MIKUNAGATA | 4:8d32e5cf3af7 | 1 | #include "mbed.h" |
MIKUNAGATA | 4:8d32e5cf3af7 | 2 | #include "TMP102.h" |
MIKUNAGATA | 4:8d32e5cf3af7 | 3 | |
MIKUNAGATA | 4:8d32e5cf3af7 | 4 | TMP102 temp(p9, p10, 0x91); |
MIKUNAGATA | 4:8d32e5cf3af7 | 5 | |
MIKUNAGATA | 4:8d32e5cf3af7 | 6 | int main() { |
MIKUNAGATA | 4:8d32e5cf3af7 | 7 | |
MIKUNAGATA | 4:8d32e5cf3af7 | 8 | printf("Temp: %f\n\r", temp.read()); |
MIKUNAGATA | 4:8d32e5cf3af7 | 9 | |
MIKUNAGATA | 4:8d32e5cf3af7 | 10 | } |