![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
温度センサのプログラム(PCに表示)
Dependencies: mbed
tmp.cpp@0:4b059e3c0849, 2019-11-16 (annotated)
- Committer:
- MIKUNAGATA
- Date:
- Sat Nov 16 06:14:54 2019 +0000
- Revision:
- 0:4b059e3c0849
TEMP
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MIKUNAGATA | 0:4b059e3c0849 | 1 | #include "mbed.h" |
MIKUNAGATA | 0:4b059e3c0849 | 2 | #include "TMP102.h" |
MIKUNAGATA | 0:4b059e3c0849 | 3 | |
MIKUNAGATA | 0:4b059e3c0849 | 4 | TMP102 temp(p9, p10, 0x91); |
MIKUNAGATA | 0:4b059e3c0849 | 5 | |
MIKUNAGATA | 0:4b059e3c0849 | 6 | int main() { |
MIKUNAGATA | 0:4b059e3c0849 | 7 | |
MIKUNAGATA | 0:4b059e3c0849 | 8 | printf("Temp: %f\n\r", temp.read()); |
MIKUNAGATA | 0:4b059e3c0849 | 9 | |
MIKUNAGATA | 0:4b059e3c0849 | 10 | } |