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

  • Committer: edam
  • Date: 2012-02-28 16:50:26 UTC
  • Revision ID: edam@waxworlds.org-20120228165026-pwnwo300xx2e2kg6
removed ulibc, fixed button, added text rendering

Show diffs side-by-side

added added

removed removed

21
21
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
22
 */
23
23
#include "test_mode.h"
 
24
#include "display.h"
24
25
 
25
26
 
26
27
TestMode::TestMode()
33
34
void TestMode::draw( int segment )
34
35
{
35
36
        // turn on outside LEDs
36
 
        led_on( 9, true );
 
37
        Display::led( 9, true );
37
38
 
38
39
        // display segment number in binary across in the inside LEDs,
39
40
        // with the LED on pin 12 showing the least-significant bit
40
41
        for( int a = 0; a < 9; a++ )
41
 
                led_on( 8 - a, ( segment >> a ) & 1 );
 
42
                Display::led( 8 - a, ( segment >> a ) & 1 );
42
43
}
43
44