private void Power_On(object sender, EventArgs e) { if (!port.Port.IsOpen) { return; } port.Interrupt(new byte[] { MP.dout_control.Addres, 0x10, 0, 0x51, 00, 02, 04, 0, 01, 0, 1 }); }
public void Data_Transmit() { byte set = 0; if (button.BackColor == Color.LightGray) { set = 1; } ML.Interrupt(new byte[] { dout.Addres, 0x06, 0x00, code, 0x00, set }); }