Category

Big Digits

Created by

Steve Hassenplug

Name

BIGdigits

Uploaded

08.10.2008

 

Download

Content of ZIP file

  BIGdigits.ric 2          

2

1

1

  BIGdigits.nxc                  

 

Description

This RIC file was created by Steve Hassenplug. When you are programming with NXT-G than you MUST visit his homepage http://www.teamhassenplug.org/NXT/ where you can find a good collection of useful additional blocks for NXT-G! From the page you also can download a NXT-G block for using extended RIC files together with parameters!

 

The font was especially designed for displaying of big numbers on the LCD display of NXT - but you can use it for every other needs!

 

 

Here is a little example which should show you how you can use the font with your NXC programs:

 

  void BigDigitsOut( int x,
                   int y,
                   int num )
{
   string s;
   int    i;
   int    v[1];

   s = FormatNum( "%4d",num );
   for( i=0; i<StrLen( s ); i++ )
   {
      v[0] = s[i];
      GraphicOutEx( x, y, "BIGdigits.ric", v );
      x += 24;
   }
}


task main()
{
   int counter = 0;

   ClearScreen();

   while( ! ButtonPressed( BTNCENTER, TRUE ) )
   {
      BigDigitsOut( 0,0, counter );
      counter++;
      Wait( 100 );
   }
}