bzr branch
http://bzr.ed.am/elec/propeller-clock
1 2 3 4 5 6 7 8 9 10 |
// number of segments in a full display (rotation) is 60 (one per // second) times the desired number of sub-divisions of a second #define NUM_SECOND_SEGMENTS 5 #define NUM_SEGMENTS ( 60 * NUM_SECOND_SEGMENTS ) // clock draw direction #define CLOCK_FORWARD 0 // rotate display (in segments) #define CLOCK_SHIFT ( 58 * NUM_SECOND_SEGMENTS - 1 ) |