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:
- 2:3576839565ae
- Child:
- 6:909e7877d915
- Child:
- 7:b1b4db3eedb4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Afficheur.h Mon Sep 04 22:57:54 2017 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" + +#define USESPI + +class Afficheur +{ +public: + Afficheur(); + + void write(char* characters,int length ); + void write(char ch); + void resetDisplay(); + void showDot(); + void hideDot(); + + private: + #ifdef USESPI + SPI afficheur; + #endif + #ifdef USEUART + UARTAfficheur afficheur; + #endif + DigitalOut chipSelect; +}; \ No newline at end of file