Julia DESMAZES / Mbed 2 deprecated Hexapode

Dependencies:   mbed BLE_API X_NUCLEO_IDB0XA1 MODSERIAL

Revision:
1:8bab9152933e
Child:
2:ca6d8d1f77d4
diff -r edce82659847 -r 8bab9152933e COM/LOGGER.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/COM/LOGGER.h	Thu Aug 11 12:18:13 2016 +0000
@@ -0,0 +1,29 @@
+#ifndef LOGGER_H
+#define LOGGER_H
+
+#include "mbed.h"
+#include <string>
+
+class Logger {
+    
+    public : 
+    static Logger* Instance();
+    
+    void log(std::string s);
+    void logn(std::string s);
+    void log(double f);
+    void logn(double f);
+    void log(int i);
+    void logn(int i);
+    void log(long l);
+    void logn(long l);
+    string log_itos(int i);
+    protected : 
+    static Logger* _instance;
+    
+    Logger();
+    Serial * serial;
+    
+};
+
+#endif
\ No newline at end of file