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.
main.cpp@3:26633efdb309, 2015-04-03 (annotated)
- Committer:
- darzento
- Date:
- Fri Apr 03 07:01:57 2015 +0000
- Revision:
- 3:26633efdb309
- Parent:
- 1:cd96d1c79a8b
- Child:
- 4:a1cb6536f303
add interrupt
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| darzento | 1:cd96d1c79a8b | 1 | #include "mbed.h" |
| darzento | 1:cd96d1c79a8b | 2 | |
| darzento | 1:cd96d1c79a8b | 3 | DigitalOut myled(LED1); |
| darzento | 3:26633efdb309 | 4 | InterruptIn Hall(); |
| darzento | 1:cd96d1c79a8b | 5 | |
| darzento | 3:26633efdb309 | 6 | int sensing(&Hall); |
| darzento | 3:26633efdb309 | 7 | |
| darzento | 3:26633efdb309 | 8 | int main() |
| darzento | 3:26633efdb309 | 9 | { |
| darzento | 3:26633efdb309 | 10 | while(1) |
| darzento | 3:26633efdb309 | 11 | { |
| darzento | 3:26633efdb309 | 12 | |
| darzento | 1:cd96d1c79a8b | 13 | } |
| darzento | 3:26633efdb309 | 14 | } |
| darzento | 3:26633efdb309 | 15 | |
| darzento | 3:26633efdb309 | 16 | int sensing() |
| darzento | 3:26633efdb309 | 17 | { |
| darzento | 3:26633efdb309 | 18 | |
| darzento | 3:26633efdb309 | 19 | return ; |
| darzento | 3:26633efdb309 | 20 | } |
