Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelajh committed Dec 8, 2012
1 parent a97b1d4 commit 5ebd050
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Project4/main.c
Expand Up @@ -93,7 +93,22 @@ void poller() {
}

void manual() {
//if ( deathIsNeeded() ) { return; }
printf("Entering manual state\n");
if (SW1 == 0) {
*(green_LED_ptr) = MRED | SGRE;
SLEEP(10); // Sleep 10 seconds
*(green_LED_ptr) = MRED | SYEL;
SLEEP(2);
*(green_LED_ptr) = MRED | SRED;
SLEEP(2);
} else {
*(green_LED_ptr) = MGRE | SRED;
SLEEP(10);
*(green_LED_ptr) = MYEL | SRED;
SLEEP(2);
*(green_LED_ptr) = MRED | SRED;
SLEEP(2);
}
return;
}

Expand Down

0 comments on commit 5ebd050

Please sign in to comment.