/***************************************************
  file:         cm2.c
  description:  This file introduces the LCD
                interface.
***************************************************/
#include <stdio.h>
#include <hc11.h>
#include "delay.h"
#include "lcd.h"

/*******************************
** Variables
*******************************/
unsigned int x;

void main(void)
{
        /*************************************
        * Power on delay for LCD, then
        * initialize the LCD and display a
        * header.
        *************************************/
        DelayMilliSec( 15 );
        InitLCD();
        SetLCD( LINE1 ); printf( "    CANTEC11    " );
        SetLCD( LINE2 ); printf( "Software Dev SBC" );
        SetLCD( LINE3 ); printf( "----------------" );
        SetLCD( LINE4 ); printf( "  Version 1.11  " );

        /*************************************
        * Delay 2 second
        *************************************/
        for( x=0; x<10; x++ )
            DelayMilliSec( 200 );

        ClearLCD();     /* clear the display */

        x = 0;
        while( 1 )
        {
           SetLCD( LINE1 );
           printf( "x = %d ", x++ );
           DelayMilliSec( 250 );
        }
}


#include "vectors.c"
