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@2:3576839565ae, 2017-09-04 (annotated)
- Committer:
- ThierryLeonard
- Date:
- Mon Sep 04 22:57:54 2017 +0000
- Revision:
- 2:3576839565ae
- Child:
- 6:909e7877d915
- Child:
- 7:b1b4db3eedb4
Afficheur Spi
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ThierryLeonard | 2:3576839565ae | 1 | #include "mbed.h" |
ThierryLeonard | 2:3576839565ae | 2 | |
ThierryLeonard | 2:3576839565ae | 3 | #define USESPI |
ThierryLeonard | 2:3576839565ae | 4 | |
ThierryLeonard | 2:3576839565ae | 5 | class Afficheur |
ThierryLeonard | 2:3576839565ae | 6 | { |
ThierryLeonard | 2:3576839565ae | 7 | public: |
ThierryLeonard | 2:3576839565ae | 8 | Afficheur(); |
ThierryLeonard | 2:3576839565ae | 9 | |
ThierryLeonard | 2:3576839565ae | 10 | void write(char* characters,int length ); |
ThierryLeonard | 2:3576839565ae | 11 | void write(char ch); |
ThierryLeonard | 2:3576839565ae | 12 | void resetDisplay(); |
ThierryLeonard | 2:3576839565ae | 13 | void showDot(); |
ThierryLeonard | 2:3576839565ae | 14 | void hideDot(); |
ThierryLeonard | 2:3576839565ae | 15 | |
ThierryLeonard | 2:3576839565ae | 16 | private: |
ThierryLeonard | 2:3576839565ae | 17 | #ifdef USESPI |
ThierryLeonard | 2:3576839565ae | 18 | SPI afficheur; |
ThierryLeonard | 2:3576839565ae | 19 | #endif |
ThierryLeonard | 2:3576839565ae | 20 | #ifdef USEUART |
ThierryLeonard | 2:3576839565ae | 21 | UARTAfficheur afficheur; |
ThierryLeonard | 2:3576839565ae | 22 | #endif |
ThierryLeonard | 2:3576839565ae | 23 | DigitalOut chipSelect; |
ThierryLeonard | 2:3576839565ae | 24 | }; |