Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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);
}
}