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.
Dependencies: mbed MMA8452Q MS5837 SDFileSystem SCI_SENSOR
Diff: main.cpp
- Revision:
- 33:b9e349e91d29
- Parent:
- 32:ffe14e791fa9
- Child:
- 34:dd00bd18ead9
--- a/main.cpp Wed Dec 08 21:16:40 2021 +0000 +++ b/main.cpp Wed Dec 08 21:23:08 2021 +0000 @@ -207,6 +207,7 @@ fp = fopen(fname, "a"); fprintf(fp, "$DATA \r\n"); fprintf(fp, "Time:%f \r\n", t.read()); + fprintf(fp, "Pressure:%f \r\n", p_sensor.MS5837_Pressure()); // Time:%f, Pressure:%f, Depth:%f, Acceleration:%f, %f, %f, Temp:%f, Light:%f, Percent:%f\r\n", t.read(),p_sensor.MS5837_Pressure(),p_sensor.depth(),accelData[0],accelData[1],accelData[2],temp.temp(),light.light(),percent); fclose(fp);