Skip to content

Commit

Permalink
Add option to vibe on the hour.
Browse files Browse the repository at this point in the history
  • Loading branch information
DouweM committed Nov 6, 2013
1 parent dc74c50 commit 852b41d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Revolution.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

// Settings
#define USE_AMERICAN_DATE_FORMAT false
#define VIBE_ON_HOUR false
#define TIME_SLOT_ANIMATION_DURATION 500

// Magic numbers
Expand Down Expand Up @@ -537,6 +538,12 @@ void handle_second_tick(struct tm *tick_time, TimeUnits units_changed) {
display_time(tick_time);
}

#if VIBE_ON_HOUR
if ((units_changed & HOUR_UNIT) == HOUR_UNIT) {
vibes_double_pulse();
}
#endif

if ((units_changed & DAY_UNIT) == DAY_UNIT) {
display_day(tick_time);
display_date(tick_time);
Expand Down

0 comments on commit 852b41d

Please sign in to comment.