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.
Revision 1:916c0b2b9f1c, committed 2018-11-29
- Comitter:
- vicara
- Date:
- Thu Nov 29 17:23:36 2018 +0000
- Parent:
- 0:9758d6dc0132
- Commit message:
- 2;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9758d6dc0132 -r 916c0b2b9f1c main.cpp --- a/main.cpp Thu Nov 29 17:05:46 2018 +0000 +++ b/main.cpp Thu Nov 29 17:23:36 2018 +0000 @@ -7,6 +7,7 @@ time_t pressed_seconds = time(NULL); void blink_led(){ + // Blink the led two times if button pressed two times in two seconds led1 = !led1; wait(0.5); led1 = !led1; @@ -16,7 +17,6 @@ led1 = !led1; } void rise_handler_thread_context(void) { -// printf("rise_handler_thread_context in context %p\r\n", Thread::gettid()); if(pressed_seconds - time(NULL) > 2){ pressed_seconds = time(NULL); } else {