不韋 呂 / Mbed 2 deprecated Demo_LPS25H

Dependencies:   UIT_LPS25H_I2C mbed

main.cpp

Committer:
MikamiUitOpen
Date:
2016-12-18
Revision:
0:3b25091eab21

File content as of revision 0:3b25091eab21:

//--------------------------------------------------------------
//  気圧センサ LPS25H 用クラス Lps25hI2c の使用例
//
//  2016/12/18, Copyright (c) 2016 MIKAMI, Naoki
//--------------------------------------------------------------

#include "LPS25H_I2C.hpp"
using namespace Mikami;

int main ()
{
    Lps25hI2c pressure;
    
    while (true)
    {
        float x = pressure;
        printf("%8.2f hPa\r\n", x);
//        printf("%8.2f hPa\r\n", pressure.Read()); // OK

        wait(1);
    }
}