📄 rsdemo.c
字号:
/* RSDEMO.C */
#include "rs232.h"
#include <string.h>
#include <conio.h>
#include <stdio.h>
#include <dos.h>
#define ESC 27
/* prototypes */
void interroge(void);
void main(void);
void terminal(void);
void testorphy(void);
int cherche_orphy(void);
char typo[10];
int valcom;
void main(void)
{
char rep[100];
int n, type_orphy,reponse;
long debit;
clrscr(); /* efface l'俢ran */
if ((type_orphy=cherche_orphy())==0) /* ORPHY sur COM1 ou COM2*/
{
reponse=init_rs(0,9600,'n',8,1);
ecris_rs_rc("XSTOPS 0");
debit=9600L;
do
{ clrscr();
gotoxy(60,2);
textcolor(LIGHTRED);
cprintf("vitesse: ");
gotoxy(60,3);
cprintf("%6ld Bauds",debit);
textcolor(WHITE);
gotoxy(1,1);
printf("\n communication avec ORPHY %s sur COM%d \n\n",typo,valcom);
printf("\n C. RELLIER pour EVARISTE \n\n");
printf(" 赏屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯籠n");
printf("
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -