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: X_NUCLEO_IKS01A1 mbed
Fork of Sensors_Reader by
Diff: main.cpp
- Revision:
- 61:77f043ac766b
- Parent:
- 58:e1b83db148d0
- Child:
- 62:67e2353604be
diff -r 570500315ab8 -r 77f043ac766b main.cpp
--- a/main.cpp Mon Aug 17 09:48:47 2015 +0200
+++ b/main.cpp Mon Aug 31 12:07:22 2015 +0200
@@ -95,9 +95,9 @@
static MotionSensor *accelerometer = mems_expansion_board->GetAccelerometer();
static MagneticSensor *magnetometer = mems_expansion_board->magnetometer;
static HumiditySensor *humidity_sensor = mems_expansion_board->ht_sensor;;
-static PressureSensor *pressure_sensor = mems_expansion_board->pressure_sensor;
+static PressureSensor *pressure_sensor = mems_expansion_board->pt_sensor;
static TempSensor *temp_sensor1 = mems_expansion_board->ht_sensor;
-static TempSensor *temp_sensor2 = mems_expansion_board->pressure_sensor;
+static TempSensor *temp_sensor2 = mems_expansion_board->pt_sensor;
static Ticker ticker;
static DigitalOut myled(LED1, LED_OFF);
@@ -239,7 +239,7 @@
ACC_Value.AXIS_X, ACC_Value.AXIS_Y, ACC_Value.AXIS_Z);
printf("GYR [mdps]: %9ld %9ld %9ld\n",
GYR_Value.AXIS_X, GYR_Value.AXIS_Y, GYR_Value.AXIS_Z);
- printf("---\nTEMP | HUMIDITY: %s°C | %s%%\nTEMP | PRESSURE: %s°F | %4smbar\n",
+ printf("---\nTEMP | HUMIDITY: %s°C | %s%%\nTEMP | PRESSURE: %s°F | %smbar\n",
printDouble(buffer1, TEMPERATURE_Value),
printDouble(buffer2, HUMIDITY_Value),
printDouble(buffer4, PRESSURE_Temp_Value),
