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

  • Committer: edam
  • Date: 2012-02-28 17:11:15 UTC
  • Revision ID: edam@waxworlds.org-20120228171115-j3k91a3v71d3wnc1
cleanu

Show diffs side-by-side

added added

removed removed

1
1
/*
2
 
 * common.h
 
2
 * display.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 _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 );
 
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 );
33
36
        
34
 
/**
35
 
 * Turn off all LEDs
36
 
 */
37
 
extern void leds_off();
38
 
 
39
 
 
40
 
#endif //_COMMON_H_
 
37
        /**
 
38
         * Turn off all LEDs
 
39
         */
 
40
        void leds_off();
 
41
 
 
42
};
 
43
 
 
44
 
 
45
#endif //_DISPLAY_H_