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