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.
Dependencies: mbed
main.cpp@27:317e04648a84, 2020-09-08 (annotated)
- Committer:
- buble
- Date:
- Tue Sep 08 14:06:05 2020 +0000
- Revision:
- 27:317e04648a84
- Parent:
- 26:16862c6477d5
- Child:
- 28:1b2d816669da
Version_1_LED_Bleue
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| buble | 25:7248bf24d36e | 1 | #include "mbed.h" //inclue la bibliotheque mbed.h |
| dan | 0:7dec7e9ac085 | 2 | |
| buble | 27:317e04648a84 | 3 | DigitalOut Led_bleue(PTB21); |
| buble | 27:317e04648a84 | 4 | DigitalIn BP2(D7); |
| dan | 0:7dec7e9ac085 | 5 | |
| buble | 27:317e04648a84 | 6 | int main() { |
| buble | 27:317e04648a84 | 7 | while(1){ |
| buble | 27:317e04648a84 | 8 | if (BP2==1) |
| buble | 27:317e04648a84 | 9 | { |
| buble | 27:317e04648a84 | 10 | Led_bleue=0; |
| buble | 27:317e04648a84 | 11 | } |
| buble | 27:317e04648a84 | 12 | else |
| buble | 27:317e04648a84 | 13 | { |
| buble | 27:317e04648a84 | 14 | Led_bleue=1; |
| buble | 27:317e04648a84 | 15 | } |
| stevep | 4:81cea7a352b0 | 16 | } |
| dan | 0:7dec7e9ac085 | 17 | } |