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: MAX31875_Temperature_Sensor_Low_Power
Revision 1:bc3ce35be52a, committed 2023-03-06
- Comitter:
- cyliang
- Date:
- Mon Mar 06 10:29:36 2023 +0000
- Parent:
- 0:c40fe84a8d1f
- Child:
- 2:01a2b08b4621
- Commit message:
- Change wait function and config for printing float @OS v6.17.0
Changed in this revision
--- a/main.cpp Tue Apr 16 11:56:19 2019 +0000
+++ b/main.cpp Mon Mar 06 10:29:36 2023 +0000
@@ -35,7 +35,7 @@
/* It should wait at least 1/8 seconds for next read */
//wait(MAX31875_WAIT_CONV_RATE_8);
/* But to slow print out rate, wait 1 second here */
- wait(1);
+ ThisThread::sleep_for(1000ms); // wait(1);
f_temperature = temp_sensor.read_reg_as_temperature(MAX31875_REG_TEMPERATURE);
printf("Temperature is %3.4f Celsius, %3.4f Fahrenheit\r\n",
--- a/mbed-os.lib Tue Apr 16 11:56:19 2019 +0000 +++ b/mbed-os.lib Mon Mar 06 10:29:36 2023 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#0063e5de32fc575f061244c96ac60c41c07bd2e6 +https://github.com/ARMmbed/mbed-os/#17dc3dc2e6e2817a8bd3df62f38583319f0e4fed \ No newline at end of file
--- a/mbed_app.json Tue Apr 16 11:56:19 2019 +0000
+++ b/mbed_app.json Mon Mar 06 10:29:36 2023 +0000
@@ -2,7 +2,8 @@
"target_overrides": {
"*": {
"platform.stdio-baud-rate" : 115200,
- "platform.stdio-convert-newlines" : true
+ "platform.stdio-convert-newlines" : true,
+ "platform.minimal-printf-enable-floating-point" : true
}
}
}