Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- csinders
- Date:
- 2018-02-23
- Revision:
- 0:45ed48d2fec2
- Child:
- 1:84b9a3e560fe
File content as of revision 0:45ed48d2fec2:
#include "mbed.h" #include "MPL3115.h" Serial pc(USBTX, USBRX); MPL3115 mpl(PB_7,PB_6); int main() { pc.printf("Starting program\r\n"); // Set mpl to active mpl.MPL3115::MPL3115_config(); while (1) { float test; mpl.acquire_MPL3115_data_Altitude_in_m(&test); pc.printf("test = %f\r\n", test); wait_ms(100); } }