private void WriteProjectorCode(byte function, string inputCodes) { byte[] data = DataDeclaration.SetDataFormat(function, byBaudRate, byParityBit, inputCodes, hex); communicate.SendData(data, 0, data.Length); Thread.Sleep(100); }
private void WriteProjectorCode(string[] inputCodes) { for (int i = 0; i < 6; i++) { byte[] data = DataDeclaration.SetDataFormat(functionCodes[i], byBaudRate, byParityBit, inputCodes[i], hex); communicate.SendData(data, 0, data.Length); Thread.Sleep(100); } }