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@5:2ead41027963, 2015-04-03 (annotated)
- Committer:
- darzento
- Date:
- Fri Apr 03 14:11:53 2015 +0000
- Revision:
- 5:2ead41027963
- Parent:
- 4:a1cb6536f303
- Child:
- 6:276d384f8483
sketchy frame
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 | 5:2ead41027963 | 3 | /***************************************************************************** |
| darzento | 5:2ead41027963 | 4 | * * |
| darzento | 5:2ead41027963 | 5 | * * |
| darzento | 5:2ead41027963 | 6 | * * |
| darzento | 5:2ead41027963 | 7 | ******************************************************************************/ |
| darzento | 5:2ead41027963 | 8 | |
| darzento | 1:cd96d1c79a8b | 9 | DigitalOut myled(LED1); |
| darzento | 5:2ead41027963 | 10 | DigitalOut frame(); //Clock frame |
| darzento | 5:2ead41027963 | 11 | DigitalOut dot_Point(); //Time point |
| darzento | 5:2ead41027963 | 12 | BusOut hour(); //Hour hand |
| darzento | 5:2ead41027963 | 13 | BusOut minute(); //Minute hand |
| darzento | 5:2ead41027963 | 14 | InterruptIn hall(); //Hall sensor sensing interrupt |
| darzento | 1:cd96d1c79a8b | 15 | |
| darzento | 5:2ead41027963 | 16 | void sensing() |
| darzento | 5:2ead41027963 | 17 | { |
| darzento | 5:2ead41027963 | 18 | |
| darzento | 5:2ead41027963 | 19 | |
| darzento | 5:2ead41027963 | 20 | } |
| darzento | 3:26633efdb309 | 21 | |
| darzento | 3:26633efdb309 | 22 | int main() |
| darzento | 3:26633efdb309 | 23 | { |
| darzento | 5:2ead41027963 | 24 | hall.rise(&sensing); //rising edge operating |
| darzento | 4:a1cb6536f303 | 25 | |
| darzento | 3:26633efdb309 | 26 | while(1) |
| darzento | 4:a1cb6536f303 | 27 | { |
| darzento | 4:a1cb6536f303 | 28 | |
| darzento | 1:cd96d1c79a8b | 29 | } |
| darzento | 5:2ead41027963 | 30 | } |
