LPS25Hの気圧データを取得するプログラムです

Dependencies:   LPS25H mbed

Committer:
PQUTO
Date:
Fri Jan 20 20:47:17 2017 +0000
Revision:
0:3004c25ebb90
LPS25H????????????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
PQUTO 0:3004c25ebb90 1 #include "mbed.h"
PQUTO 0:3004c25ebb90 2 #include "LPS25H.h"
PQUTO 0:3004c25ebb90 3
PQUTO 0:3004c25ebb90 4 Serial pc(USBTX, USBRX);
PQUTO 0:3004c25ebb90 5 MyLPS25H mypress(PB_7, PB_6);
PQUTO 0:3004c25ebb90 6 int main() {
PQUTO 0:3004c25ebb90 7 pc.baud(115200);
PQUTO 0:3004c25ebb90 8 mypress.SetPress();
PQUTO 0:3004c25ebb90 9 while(1) {
PQUTO 0:3004c25ebb90 10 pc.printf("%f\r\n", mypress.GetPress());;
PQUTO 0:3004c25ebb90 11 }
PQUTO 0:3004c25ebb90 12 }
PQUTO 0:3004c25ebb90 13