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:
- 39:f2f0308ebecd
- Parent:
- 38:46975eaa1400
- Child:
- 40:8a37ea9d006d
--- a/main.cpp Wed Dec 08 22:18:10 2021 +0000 +++ b/main.cpp Thu Dec 09 13:14:05 2021 +0000 @@ -196,11 +196,11 @@ BLE.printf("Temperature: %f Light: %f\r\n",temp.temp(), light.light()); //Sample code shows how to read pressure sensor - //BLE.printf("Depth: %f Pressure: %f Temperature: %f\r\n", p_sensor.depth(), p_sensor.MS5837_Pressure(), p_sensor.MS5837_Temperature()); + BLE.printf("Depth: %f Pressure: %f \r\n", p_sensor.depth(), p_sensor.MS5837_Pressure()); //p_sensor.MS5837_Temperature()); //p_sensor.Barometer_MS5837(); //NOTE: this function prompts the pressure sensor to collect the next data point, so it must be included! //Sample code indicates how to read accelerometer data: - //BLE.printf("Acceleration: %f %f %f\r\n",accelData[0],accelData[1],accelData[2]); + BLE.printf("Acceleration: %f %f %f\r\n",accelData[0],accelData[1],accelData[2]); //end of code from Licht fp = fopen(fname, "a");