2017能代宇宙イベント開放用プログラム(kobayashi)
Dependencies: mbed MS5607 MPU6050
main.cpp
- Committer:
- nene_kobayashi
- Date:
- 2017-07-23
- Revision:
- 1:fa1980f9b2d0
- Parent:
- 0:027a3ffb7500
- Child:
- 2:3a7c38279b0b
File content as of revision 1:fa1980f9b2d0:
#include "mbed.h" #include "MS5607I2C.h" MS5607I2C ms(p9,p10,false); DigitalOut myled(LED1); float max; int main() { max=0; while(1){ float alt = ms.getAltitude(); if(max <= alt){ max = alt; }else if(max > alt){ myled = 1; } } }