![](/media/cache/group/icon1_qbDJ87a.png.50x50_q85.png)
LPS25Hの気圧データを取得するプログラムです
Diff: main.cpp
- Revision:
- 0:3004c25ebb90
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jan 20 20:47:17 2017 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +#include "LPS25H.h" + +Serial pc(USBTX, USBRX); +MyLPS25H mypress(PB_7, PB_6); +int main() { + pc.baud(115200); + mypress.SetPress(); + while(1) { + pc.printf("%f\r\n", mypress.GetPress());; + } +} +