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.
Fork of Task614-mbedos54 by
Revision 3:e2766fc08cce, committed 2017-10-31
- Comitter:
- noutram
- Date:
- Tue Oct 31 14:47:22 2017 +0000
- Parent:
- 2:7e77fec81f7d
- Commit message:
- updated for stage - 3;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7e77fec81f7d -r e2766fc08cce main.cpp --- a/main.cpp Thu Mar 30 14:12:06 2017 +0000 +++ b/main.cpp Tue Oct 31 14:47:22 2017 +0000 @@ -8,16 +8,14 @@ void countUP(); void countDOWN(); -//Digital outputs DigitalOut onBoardLED(LED1); -DigitalOut redLED(D7); -DigitalOut yellowLED(D6); -DigitalOut greenLED(D5); +DigitalOut redLED(PE_15); +DigitalOut yellowLED(PB_10); +DigitalOut greenLED(PB_11); -//Digital inputs DigitalIn onBoardSwitch(USER_BUTTON); -DigitalIn SW1(D4); -DigitalIn SW2(D3); +DigitalIn SW1(PE_12); +DigitalIn SW2(PE_14); //Thread ID for the Main function (CMSIS API) osThreadId tidMain; @@ -30,7 +28,7 @@ { redLED = 1; - for (unsigned int n=0; n<10000; n++) { + for (unsigned int n=0; n<1000000; n++) { count++; count++; count++; @@ -51,7 +49,7 @@ { yellowLED = 1; - for (unsigned int n=0; n<10000; n++) { + for (unsigned int n=0; n<1000000; n++) { count--; count--; count--;
diff -r 7e77fec81f7d -r e2766fc08cce mbed-os.lib --- a/mbed-os.lib Thu Mar 30 14:12:06 2017 +0000 +++ b/mbed-os.lib Tue Oct 31 14:47:22 2017 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#50b3418e45484ebf442b88cd935a2d5355402d7d +https://github.com/ARMmbed/mbed-os/#e62a1b9236b44e70ae3b0902dc538481c04d455b