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.
Diff: Afficheur.h
- Revision:
- 8:5124be43c963
- Parent:
- 6:909e7877d915
- Parent:
- 7:b1b4db3eedb4
- Child:
- 9:b9ac1d914762
diff -r 909e7877d915 -r 5124be43c963 Afficheur.h
--- a/Afficheur.h Tue Sep 05 05:51:17 2017 +0000
+++ b/Afficheur.h Tue Sep 05 10:00:13 2017 +0000
@@ -1,9 +1,14 @@
+#ifndef AFFICHEUR_H
+#define AFFICHEUR_H
+
+
#include "mbed.h"
-#define USESPI
+#include "CommUART.h"
class Afficheur
{
+ typedef CommUART3 CommInterface;
public:
Afficheur();
@@ -14,11 +19,8 @@
void hideDot();
private:
- #ifdef USESPI
- SPI afficheur;
- #endif
- #ifdef USEUART
- UARTAfficheur afficheur;
- #endif
+ CommInterface afficheur;
DigitalOut chipSelect;
-};
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file
