Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyburdi committed Oct 19, 2015
1 parent e1fe47f commit 08f1527
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Readme - Rise Clock
The rise clock is made using a teensy 3.1. Use the [instructions at PJRC](https://www.pjrc.com/teensy/first_use.html) to set your editor up.
10 changes: 6 additions & 4 deletions Rise_Clock.ino
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void workoutChooser(tmElements_t tm, time_t t) {
preWorkoutCountdown( 16, 25, 30, tm);
// mondayTrack();
} else if (weekday(t) == mon && tm.Hour >= 17) {
countdown(5,5, timeInterval, red);
countdown(10,10, timeInterval, red);
mondayTrack();
} else if (weekday(t) == wed && tm.Hour == 10 && tm.Minute < 30) {
preWorkoutCountdown(10, 30, 30, tm);
Expand All @@ -70,23 +70,25 @@ void workoutChooser(tmElements_t tm, time_t t) {
} else if (weekday(t) == wed && tm.Hour == 6 && tm.Minute < 30) {
preWorkoutCountdown(6, 30 , 30, tm);
} else if (weekday(t) == wed && tm.Hour == 6 && tm.Minute >= 30) {
wednesdayWorkout(30,timeInterval,6,8,4,6,5,1);
wednesdayWorkout(30,timeInterval,5,10,5,10,0,0);
endWorkout(150); // turn on all nodes red

} else if (weekday(t) == fri && tm.Hour == 6 && tm.Minute > 30) {
fridayHillSprints();

} else {
Serial.println("No workouts scheduled for now ");
updateDigits(tm.Hour*60 + tm.Minute, green); // display the time in HH:MM
//updateDigits(tm.Hour*60 + tm.Minute, green); // display the time in HH:MM
countdown(10,10, timeInterval, red);
mondayTrack();
}
}

void mondayTrack() {
// Show the word "GO"
dispGo(3);
// Mon Night Track CountUp
countup(4,30*60, timeInterval, green);
countup(4,120*60, timeInterval, green);
endWorkout(150); // turn on all nodes red
}

Expand Down

0 comments on commit 08f1527

Please sign in to comment.