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@4:a1cb6536f303, 2015-04-03 (annotated)
- Committer:
- darzento
- Date:
- Fri Apr 03 07:11:41 2015 +0000
- Revision:
- 4:a1cb6536f303
- Parent:
- 3:26633efdb309
- Child:
- 5:2ead41027963
revision
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 | 4:a1cb6536f303 | 6 | void sensing(); |
| darzento | 3:26633efdb309 | 7 | |
| darzento | 3:26633efdb309 | 8 | int main() |
| darzento | 3:26633efdb309 | 9 | { |
| darzento | 4:a1cb6536f303 | 10 | Hall.rise(&Hall); |
| darzento | 4:a1cb6536f303 | 11 | |
| darzento | 3:26633efdb309 | 12 | while(1) |
| darzento | 4:a1cb6536f303 | 13 | { |
| darzento | 4:a1cb6536f303 | 14 | |
| darzento | 1:cd96d1c79a8b | 15 | } |
| darzento | 3:26633efdb309 | 16 | } |
| darzento | 3:26633efdb309 | 17 | |
| darzento | 4:a1cb6536f303 | 18 | void sensing() |
| darzento | 3:26633efdb309 | 19 | { |
| darzento | 3:26633efdb309 | 20 | |
| darzento | 4:a1cb6536f303 | 21 | |
| darzento | 3:26633efdb309 | 22 | } |
