example code using statis library for temperature measurement with LM35 and LM335

Dependencies:   mbed statis

Revision:
3:0e06300940cd
Child:
5:0b3569945178
diff -r 9517837c642d -r 0e06300940cd include/debug.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/debug.h	Thu Nov 22 14:47:20 2012 +0000
@@ -0,0 +1,11 @@
+// debug.h
+
+#ifdef DEBUG
+#  define DPRINTF( message ) printf message
+#  define DEXEC(       fct ) fct
+#  define DGETC(           ) if( tgetc() == ESC ) exit( 1 )
+#else
+#  define DPRINTF( message )
+#  define DEXEC(       fct )
+#  define DGETC(           )
+#endif