Attila Fazekas / Thermistor

Dependents:   atmel1602_24c256

Files at this revision

API Documentation at this revision

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
 ///