Alexandre Lemay / Mbed 2 deprecated APP1_s5_A17

Dependencies:   mbed MMA8452

Revision:
9:b9ac1d914762
Parent:
8:5124be43c963
Child:
10:2836530d9a5e
--- a/Afficheur.h	Tue Sep 05 10:00:13 2017 +0000
+++ b/Afficheur.h	Tue Sep 05 10:27:28 2017 +0000
@@ -4,18 +4,27 @@
 
 #include "mbed.h"
 
+ //#define USESPI
+
+#ifndef USESPI
 #include "CommUART.h"
+#endif
+
 
 class Afficheur
 {
+#ifdef USESPI
+    typedef SPI CommInterface;
+#else
     typedef CommUART3 CommInterface;
+#endif
 public:
     Afficheur();
     
-    void write(char* characters,int length ,int expo);
+    void write(char* characters,int length ,int commaFlags);
     void write(char ch);
     void resetDisplay();
-    void showDot(int expo);
+    void showDot(int commaFlags);
     void hideDot();
     
     private: