圧力センサー

Dependencies:   mbed

main.cpp

Committer:
takepiyo
Date:
2019-07-16
Revision:
4:ad09eb6ed2cb
Parent:
3:cec0bf691696
Child:
5:9cdca47368e5

File content as of revision 4:ad09eb6ed2cb:

#include "mbed.h"
#include "bme280.h"
//おっぱい


int main()
{
    BME280 bme280;
    Serial pc(USBTX,USBRX);

    while(1)
    {
        
        pc.printf("%2.2f degC, %04.2f hPa, %2.2f %%\n",bme280.getTemperature(),bme280.getPressure(),bme280.getHumidity());
        wait(1);
    }
}