Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tdickman/uc-embedded-systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Dickman committed Dec 8, 2012
2 parents 277bcbe + 5ebd050 commit 3b93381
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Project4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,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 3b93381

Please sign in to comment.