/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/minor_mode.h

  • Committer: edam
  • Date: 2012-01-14 16:54:49 UTC
  • Revision ID: edam@waxworlds.org-20120114165449-dkgjun2pb5tr9g2a
updated schematic (switched to PNP) and added info about transistors

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "drawer.h"
2
 
 
3
 
 
4
 
class MinorMode
5
 
    :
6
 
    public Drawer
7
 
{
8
 
public:
9
 
 
10
 
        /**
11
 
         * Constructor.
12
 
         *
13
 
         * @param num_flavours the number of flavours in this minor display mode
14
 
         */
15
 
        MinorMode( int num_flavours );
16
 
 
17
 
        /**
18
 
         * Called when this mninor mode becomes active
19
 
         */
20
 
        void activate();
21
 
 
22
 
        /**
23
 
         * Called when the display should change
24
 
         */
25
 
        void next_flavour();
26
 
 
27
 
protected:
28
 
 
29
 
        /** current flavour */
30
 
        int _flavour;
31
 
 
32
 
        /** number of flavours */
33
 
        int _num_flavours;
34
 
         
35
 
};