/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.cc

  • 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.cc
 
2
 * common.cc
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
 
#include "display.h"
 
23
#include "common.h"
24
24
#include "Arduino.h"
25
25
 
26
26
 
27
 
void Display::led( int led, bool on )
 
27
void led( int led, bool on )
28
28
{
29
29
        if( led < 0 || led > 9 ) return;
30
30
 
38
38
}
39
39
 
40
40
 
41
 
void Display::leds_off()
 
41
void leds_off()
42
42
{
43
43
        for( int a = 0; a < 10; a++ )
44
44
                led( a, false );