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 10:7a4d7bf54f80, committed 2020-02-27
- Comitter:
- alifsohen
- Date:
- Thu Feb 27 14:12:00 2020 +0000
- Parent:
- 9:208f11c83786
- Commit message:
- Lab 3 part 1 with interrupt
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Feb 27 14:10:22 2020 +0000 +++ b/main.cpp Thu Feb 27 14:12:00 2020 +0000 @@ -121,29 +121,7 @@ pc.printf(vstring) ; counter = 0 ; } - - // if (!b1.read()) { // now down - // while(true) { - // pc.printf("Button is pressed") ; - // osEvent evt = mailbox.get(); // wait for mail - // if (evt.status == osEventMail) { - // message_t* mess = (message_t*)evt.value.p ; - // volts = ((mess->analog * 330) / 0xffff)+extra ; - // mailbox.free(mess) ; // free the message space - // if (volts < threshold) led1 = 0 ; - // else led1 = 1 ; - // if (volts < threshold * 2) led2 = 0 ; - // else led2 = 1 ; - // if (volts < threshold * 3) led3 = 0 ; - // else led3 = 1 ; - // if (volts < threshold * 4) led4 = 0 ; - // else led4 = 1 ; - // if (volts < threshold * 5) led5 = 0 ; - // else led5 = 1 ; - // vToString(volts, vstring) ; -// } -// } -// } + } } } }