程序为
Private Sub Command1_Click()
Comm1.Output = "0X0F"
End Sub
Private Sub Command2_Click()
Comm1.Output = "0"
End Sub
Private Sub Command3_Click()
Comm1.Output = "0XF0"
End Sub
Private Sub Command4_Click()
Comm1.Output = "0X3F"
End Sub
Private Sub Command5_Click()
Comm1.Output = "0XCF"
End Sub
Private Sub Form_Load()
Comm1.PortOpen = True
Comm1.OutBufferCount = 0
Comm1.InputMode = comInputModeBinary
End Sub