PQ_Hybrid_Electrical_Equipment_Team
/
quto_LPS25H_sample4
LPS25Hの気圧データを取得するプログラムです
main.cpp@0:3004c25ebb90, 2017-01-20 (annotated)
- Committer:
- PQUTO
- Date:
- Fri Jan 20 20:47:17 2017 +0000
- Revision:
- 0:3004c25ebb90
LPS25H????????????????
Who changed what in which revision?
User | Revision | Line number | New 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 |