/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/config.h

  • Committer: edam
  • Date: 2012-02-29 21:56:32 UTC
  • Revision ID: edam@waxworlds.org-20120229215632-kypb9491vx7bicef
moved some stuf round, created a re-usable pool of message buffers, genericised "modes" for messages

Show diffs side-by-side

added added

removed removed

26
26
 
27
27
// number of segments in a full display (rotation) is 60 (one per
28
28
// second) times the desired number of sub-divisions of a second
29
 
#define NUM_SECOND_SEGMENTS 6
 
29
#define NUM_SECOND_SEGMENTS 5
30
30
#define NUM_SEGMENTS ( 60 * NUM_SECOND_SEGMENTS )
31
31
 
32
32
// clock draw direction
33
33
#define CLOCK_FORWARD 0
34
34
 
35
 
// rotate display (clockwise, in segments)
36
 
#define CLOCK_SHIFT ( 57 * NUM_SECOND_SEGMENTS - 2 )
 
35
// rotate display (in segments)
 
36
#define CLOCK_SHIFT ( 58 * NUM_SECOND_SEGMENTS - 1 )
 
37
 
 
38
// multiply font width
 
39
#define TEXT_SCALE 2
37
40
 
38
41
// scrolly text speed (segments per second)
39
42
#define TEXT_SCROLL_SPEED ( 15 * NUM_SECOND_SEGMENTS )