绝对可以编译使用 串口通讯类: using System; using System.Runtime.InteropServices; namespace JustinIO { class CommPort { public string PortNum; public int BaudRate; public byte ByteSize; public byte Parity; // 0-4=no,odd,even,mark,space public byte StopBits; // 0,
Dim speed_str(2) As Byte Dim second_count Dim second_count1 Dim bit_direc '电机方向位 Dim bit_free '电机自由位 Public Function H_To_B(ByVal Hex As String) As String Dim I As Long Dim B As String Hex = UCase(Hex) For I = 1 To Len(Hex) Select Case Mid(Hex, I, 1