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 Nucleo_Sensor_Shield
Revision 3:53d2d440a695, committed 2019-01-30
- Comitter:
- selvakumararm
- Date:
- Wed Jan 30 03:03:58 2019 +0000
- Parent:
- 2:28f8cd15fca4
- Commit message:
- IoT Exam Jan 2019
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Apr 10 02:48:03 2018 +0000
+++ b/main.cpp Wed Jan 30 03:03:58 2019 +0000
@@ -11,10 +11,9 @@
Ticker update;
volatile float TEMPERATURE_C;
-volatile float TEMPERATURE_F;
-volatile float TEMPERATURE_K;
-volatile float HUMIDITY;
-volatile float PRESSURE;
+
+<<<<<<<<Declarations should be here >>>>>>>>>>
+
bool measurements_update = false;
@@ -40,11 +39,11 @@
if(measurements_update == true){
/* Read the environmental sensors */
- <your code should be here>
+ <<<<<<<< your code should be here >>>>>>>>>>
pc.printf("Temperature:\t %.2f C / %.2f F / %.2f K\r\n", TEMPERATURE_C, TEMPERATURE_F, TEMPERATURE_K);
- pc.printf("Humidity:\t %.2f%%\r\n", HUMIDITY);
+
pc.printf("\r\n");