LTCD_070816.ISO
This commit is contained in:
1 parent
d14bbc24f9
commit
0e9364ff4c
506 files changed
+157705
-41812
No files matched your search
@@ -0,0 +1,19 @@
|
||||
// COM port Terminal
|
||||
void CommTerm(I8 port=1,U8 baud=9600)
|
||||
{
|
||||
U8 sc;
|
||||
U8 ch=0;
|
||||
coutln "ESC to exit";
|
||||
CommOpen8N1(port,baud);
|
||||
while (ch!=CH_ESC) {
|
||||
if (CommScanChar(port,&ch))
|
||||
PutChar(ch);
|
||||
ch=0;
|
||||
if (ScanKey(&ch,&sc))
|
||||
CommPutChar(port,ch);
|
||||
SwapInNext;
|
||||
}
|
||||
CommClose(port);
|
||||
}
|
||||
|
||||
CommTerm;
|
||||
Reference in new issue
Block a user