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.
Diff: Board/Board.cpp
- Revision:
- 2:e6a185df9e4c
- Parent:
- 1:7a4efebd6e44
--- a/Board/Board.cpp Sat Sep 14 22:34:00 2013 +0000 +++ b/Board/Board.cpp Mon Sep 16 18:37:14 2013 +0000 @@ -36,10 +36,10 @@ ind4 = 1; break; case 5: - ind1 = 1; + //ind1 = 1; break; case 6: - ind4 = 1; + //ind4 = 1; break; case 7: @@ -79,10 +79,10 @@ ind4 = 0; break; case 5: - ind1 = 0; + //ind1 = 0; break; case 6: - ind4 = 0; + //ind4 = 0; break; case 7: @@ -107,6 +107,7 @@ void toggleLed(char ledNum) { + //printf("ToggleLed...%i\r\n",ledNum); switch(ledNum) { case 1: @@ -122,10 +123,10 @@ ind4 = !ind4; break; case 5: - ind1 = !ind1; + //ind1 = !ind1; break; case 6: - ind4 = !ind4; + //ind4 = !ind4; break; case 7: @@ -145,15 +146,16 @@ uint8_t GetLEDStatus() { + uint8_t status = 0; - if(ind1) + if(ind1 == 1) status |= (1 << 0); - if(ind2) + if(ind2 == 1) status |= (1 << 1); - if(ind3) - status |= ( 1<< 2); - if(ind4) + if(ind3 == 1) + status |= (1 << 2); + if(ind4 == 1) status |= (1 << 3); //if(LED145678_PORT_OUT & BIT2) // status |= (1 << 4); @@ -163,6 +165,6 @@ // status |= (1 << 6); //if(LED145678_PORT_OUT & BIT5) // status |= (1 << 7); - + //printf("Get Status....%i\r\n",status); return status; }