worked to reduce program size
Dependencies: mbed
main.cpp
- Committer:
- giovanniwsn
- Date:
- 2018-10-14
- Revision:
- 0:620064decfb0
File content as of revision 0:620064decfb0:
#include "mbed.h" #include "LPS25H.h" Serial pc(USBTX, USBRX);// Serial Debug. DigitalOut myled(LED1); LPS25H baro(p28, p27); int main() { float alt, Bpress; while(1) { baro.get(); Bpress = baro.pressure(); alt = baro.altitude(); pc.printf("pre: %.3f alt: %.3f\n", Bpress, alt); myled = 1; wait(0.5); myled = 0; wait(0.5); } }