//*************************************************************************
//
//  Sample Program for LED
//
//  Target Machine : CPT-711
//
//  Function:
//  void set_led(int led, int mode, int duration)
//     : To set the LED indicators.
//                  int led       : number of LED to be accessed.
//                                  LED_RED   = 0
//                                  LED_GREEN = 1
//                  int mode      : activation mode.
//                                  LED_OFF   = 0
//                                  LED_ON    = 1
//                                  LED_FLASH = 2
//                  int duration  : duration in unit of 10 millseconds.
//
//  SYNTECH INFORMATION CO., LTD.
//
//*************************************************************************

//#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "8200lib.h"

void main (void)
    {
    clr_scr ();
    gotoxy (3,3);
    printf ("LED TEST");
    gotoxy (5,3);
    printf ("/nAdditional Info for test");

		set_led (LED_BLUE,   LED_FLASH, 300);
//    set_led (LED_RED,   LED_FLASH, 300);
//    set_led (LED_GREEN, LED_FLASH, 300);

    while (getchar() != KEY_ESC);
    }

//-------------------------------------------------------------------------//
