5,916
社区成员




function com_init(com:Integer; baud:Dword):Boolean;stdcall;external 'api_com.dll';
function com_rest:Boolean;stdcall;external 'api_com.dll';
function com_send(buf:PAnsiChar; len:Integer):Boolean;stdcall;external 'api_com.dll';
procedure send_led(n_string : AnsiString);
var PDStr: AnsiString;
begin
PDStr:= AnsiChar(Chr(27)) + AnsiChar(Chr(81)) + AnsiChar(Chr(65)) + n_string + AnsiChar(Chr(13));
try
com_send(PAnsiChar(''),1) ;
com_send(PAnsiChar(PDStr),Length(PDStr));
except
end;
end;