温度センサのプログラム(第二版)です。 PCの画面に表示します。

Dependencies:   mbed

main.cpp

Committer:
MIKUNAGATA
Date:
2019-11-18
Revision:
4:8d32e5cf3af7

File content as of revision 4:8d32e5cf3af7:

#include "mbed.h"
#include "TMP102.h"
 
TMP102 temp(p9, p10, 0x91);
 
int main() {
    
        printf("Temp: %f\n\r", temp.read());
    
    }