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.
Revision 1:601e1435dfb8, committed 2016-03-09
- Comitter:
- unix_guru
- Date:
- Wed Mar 09 13:56:37 2016 +0000
- Parent:
- 0:000a8be2414d
- Child:
- 2:ee3997416bcc
- Commit message:
- Updated documentation
Changed in this revision
| Thermistor.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Thermistor.h Wed Mar 09 13:52:45 2016 +0000
+++ b/Thermistor.h Wed Mar 09 13:56:37 2016 +0000
@@ -36,9 +36,27 @@
/// March 2016
///
/// @code
+/// #include "mbed.h"
+/// #include "Thermistor.h"
+///
+/// Serial pc(USBTX, USBRX);
+///
/// Thermistor bed(PTB10);
-/// printf("Temperature is %f Celcius", bed.get_temperature());
-///
+/// Thermistor extruder(PTB11);
+///
+/// int main()
+/// {
+/// pc.baud(115200);
+/// pc.printf("\r\nThermistor Test - Build " __DATE__ " " __TIME__ "\r\n");
+///
+/// while(1) {
+/// pc.printf("Bed Temperature %f *C\r\n",bed.get_temperature());
+/// wait(.5);
+/// pc.printf("Extruder Temperature %f *C\r\n",extruder.get_temperature());
+/// wait(.5);
+/// }
+/// }
+
/// ...
/// @endcode
///