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@2:de8cec36a564, 2020-09-30 (annotated)
- Committer:
- marques_rascol
- Date:
- Wed Sep 30 13:06:07 2020 +0000
- Revision:
- 2:de8cec36a564
- Parent:
- 1:bd98c63b7cf5
- Child:
- 3:a19488e21195
SW2 fall
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| marques_rascol | 0:618c97ce1b93 | 1 | #include "mbed.h" |
| marques_rascol | 1:bd98c63b7cf5 | 2 | InterruptIn KBI_SW2(SW2); |
| marques_rascol | 0:618c97ce1b93 | 3 | Serial pc(USBTX, USBRX, 9600); |
| marques_rascol | 0:618c97ce1b93 | 4 | |
| marques_rascol | 1:bd98c63b7cf5 | 5 | void IT_SW2() |
| marques_rascol | 0:618c97ce1b93 | 6 | { |
| marques_rascol | 1:bd98c63b7cf5 | 7 | pc.printf("appui sur SW2\n"); |
| marques_rascol | 1:bd98c63b7cf5 | 8 | } |
| marques_rascol | 0:618c97ce1b93 | 9 | |
| marques_rascol | 1:bd98c63b7cf5 | 10 | main() |
| marques_rascol | 1:bd98c63b7cf5 | 11 | { |
| marques_rascol | 2:de8cec36a564 | 12 | KBI_SW2.fall(&IT_SW2); |
| marques_rascol | 1:bd98c63b7cf5 | 13 | while (1) |
| marques_rascol | 1:bd98c63b7cf5 | 14 | { |
| marques_rascol | 1:bd98c63b7cf5 | 15 | |
| marques_rascol | 0:618c97ce1b93 | 16 | } |
| marques_rascol | 0:618c97ce1b93 | 17 | } |