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.
maint.cpp@2:3576839565ae, 2017-09-04 (annotated)
- Committer:
- ThierryLeonard
- Date:
- Mon Sep 04 22:57:54 2017 +0000
- Revision:
- 2:3576839565ae
- Parent:
- 1:ad54e8b7ac20
- Child:
- 5:70db90b673b9
Afficheur Spi
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ThierryLeonard | 1:ad54e8b7ac20 | 1 | #include "mbed.h" |
| ThierryLeonard | 2:3576839565ae | 2 | #include "Afficheur.h" |
| ThierryLeonard | 2:3576839565ae | 3 | |
| ThierryLeonard | 2:3576839565ae | 4 | #define USESPI |
| ThierryLeonard | 1:ad54e8b7ac20 | 5 | |
| ThierryLeonard | 1:ad54e8b7ac20 | 6 | |
| ThierryLeonard | 2:3576839565ae | 7 | Serial pc(USBTX, USBRX); // tx, rx |
| ThierryLeonard | 2:3576839565ae | 8 | |
| ThierryLeonard | 2:3576839565ae | 9 | Afficheur afficheur; |
| ThierryLeonard | 2:3576839565ae | 10 | |
| ThierryLeonard | 2:3576839565ae | 11 | int main() { |
| ThierryLeonard | 2:3576839565ae | 12 | while(1) |
| ThierryLeonard | 2:3576839565ae | 13 | { |
| ThierryLeonard | 2:3576839565ae | 14 | if(pc.readable()) |
| ThierryLeonard | 2:3576839565ae | 15 | { |
| ThierryLeonard | 2:3576839565ae | 16 | afficheur.write(pc.getc()); |
| ThierryLeonard | 2:3576839565ae | 17 | } |
| ThierryLeonard | 1:ad54e8b7ac20 | 18 | |
| ThierryLeonard | 1:ad54e8b7ac20 | 19 | } |
| ThierryLeonard | 1:ad54e8b7ac20 | 20 | |
| ThierryLeonard | 1:ad54e8b7ac20 | 21 | } |
