20 lines
287 B
C++
20 lines
287 B
C++
#include <stdio.h>
|
|
#include <conio.h>
|
|
#include <bios.h>
|
|
#include "serutil.h"
|
|
|
|
|
|
|
|
void main ( void )
|
|
{
|
|
char key;
|
|
|
|
clrscr();
|
|
|
|
while ( ( key = getch() ) != 27 )
|
|
{
|
|
if ( ser_WriteByte( 1, 0xFF, 1, 0, 0 ) != 0 )
|
|
printf ( "\n Error !!! " );
|
|
}
|
|
|
|
} |