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.
Afficheur.h@8:5124be43c963, 2017-09-05 (annotated)
- Committer:
- ThierryLeonard
- Date:
- Tue Sep 05 10:00:13 2017 +0000
- Revision:
- 8:5124be43c963
- Parent:
- 6:909e7877d915
- Parent:
- 7:b1b4db3eedb4
- Child:
- 9:b9ac1d914762
merge
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ThierryLeonard | 7:b1b4db3eedb4 | 1 | #ifndef AFFICHEUR_H |
ThierryLeonard | 7:b1b4db3eedb4 | 2 | #define AFFICHEUR_H |
ThierryLeonard | 7:b1b4db3eedb4 | 3 | |
ThierryLeonard | 7:b1b4db3eedb4 | 4 | |
ThierryLeonard | 2:3576839565ae | 5 | #include "mbed.h" |
ThierryLeonard | 2:3576839565ae | 6 | |
ThierryLeonard | 7:b1b4db3eedb4 | 7 | #include "CommUART.h" |
ThierryLeonard | 2:3576839565ae | 8 | |
ThierryLeonard | 2:3576839565ae | 9 | class Afficheur |
ThierryLeonard | 2:3576839565ae | 10 | { |
ThierryLeonard | 7:b1b4db3eedb4 | 11 | typedef CommUART3 CommInterface; |
ThierryLeonard | 2:3576839565ae | 12 | public: |
ThierryLeonard | 2:3576839565ae | 13 | Afficheur(); |
ThierryLeonard | 2:3576839565ae | 14 | |
evrast | 6:909e7877d915 | 15 | void write(char* characters,int length ,int expo); |
ThierryLeonard | 2:3576839565ae | 16 | void write(char ch); |
ThierryLeonard | 2:3576839565ae | 17 | void resetDisplay(); |
evrast | 6:909e7877d915 | 18 | void showDot(int expo); |
ThierryLeonard | 2:3576839565ae | 19 | void hideDot(); |
ThierryLeonard | 2:3576839565ae | 20 | |
ThierryLeonard | 2:3576839565ae | 21 | private: |
ThierryLeonard | 7:b1b4db3eedb4 | 22 | CommInterface afficheur; |
ThierryLeonard | 2:3576839565ae | 23 | DigitalOut chipSelect; |
ThierryLeonard | 7:b1b4db3eedb4 | 24 | }; |
ThierryLeonard | 7:b1b4db3eedb4 | 25 | |
ThierryLeonard | 7:b1b4db3eedb4 | 26 | #endif |