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

  • Committer: Tim Marston
  • Date: 2012-03-10 01:01:54 UTC
  • Revision ID: tim@ed.am-20120310010154-lv041mt4275k5jxo
removed most OOP/inheritance crap, saved loads of space!

Show diffs side-by-side

added added

removed removed

1
1
/*
2
 
 * display.h
 
2
 * common.h
3
3
 *
4
4
 * Copyright (C) 2011 Tim Marston <tim@ed.am> and Dan Marston.
5
5
 *
20
20
 * You should have received a copy of the GNU Lesser General Public License
21
21
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
22
 */
23
 
#ifndef _DISPLAY_H_
24
 
#define _DISPLAY_H_
25
 
 
26
 
 
27
 
namespace Display
28
 
{
29
 
        /**
30
 
         * Turn on/off an LED
31
 
         *
32
 
         * @param led index of the LED (0 to 9)
33
 
         * @param on true to turn on, false to turn off
34
 
         */
35
 
        void led( int led, bool on );
 
23
#ifndef _COMMON_H_
 
24
#define _COMMON_H_
 
25
 
 
26
/**
 
27
 * Turn on/off an LED
 
28
 *
 
29
 * @param led index of the LED (0 to 9)
 
30
 * @param on true to turn on, false to turn off
 
31
 */
 
32
extern void led( int led, bool on );
36
33
        
37
 
        /**
38
 
         * Turn off all LEDs
39
 
         */
40
 
        void leds_off();
41
 
 
42
 
};
43
 
 
44
 
 
45
 
#endif //_DISPLAY_H_
 
34
/**
 
35
 * Turn off all LEDs
 
36
 */
 
37
extern void leds_off();
 
38
 
 
39
 
 
40
#endif //_COMMON_H_