39
39
bool draw_tick = segment && ( segment % ( NUM_SECOND_SEGMENTS * 5 ) == 0 ||
40
40
segment == 1 || segment == NUM_SEGMENTS - 1 );
41
41
bool draw_hour = segment == _hour_segment;
42
bool draw_hour_side = 2 >=
42
bool draw_hour_side = 1 >=
43
43
( abs( _hour_segment - segment ) + NUM_SEGMENTS ) % NUM_SEGMENTS;
45
45
// ( segment == ( _hour_segment + 1 ) % NUM_SEGMENTS ) ||
46
46
// ( segment == ( _hour_segment + NUM_SEGMENTS - 1 ) % NUM_SEGMENTS );
47
47
bool draw_minute = segment == _minute_segment;
48
bool draw_minute_side = 1 >=
49
( abs( _minute_segment - segment ) + NUM_SEGMENTS ) % NUM_SEGMENTS;
51
48
bool draw_second = segment == _second_segment;
54
51
Display::led( 9, get_flavour() == 0 );
55
52
Display::led( 8, draw_tick || draw_second );
56
Display::led( 7, draw_minute || draw_second );
57
Display::led( 6, draw_minute || draw_minute_side || draw_second );
58
Display::led( 5, draw_minute || draw_minute_side ||
59
draw_second || draw_hour );
53
for( int a = 6; a <= 7; a++ )
54
Display::led( a, draw_minute || draw_second );
55
Display::led( 5, draw_minute || draw_second || draw_hour );
60
56
for( int a = 0; a <= 4; a++ )
61
Display::led( a, draw_minute || draw_minute_side ||
62
draw_second || draw_hour || draw_hour_side );
57
Display::led( a, draw_minute || draw_second || draw_hour || draw_hour_side );