private void SendButton_Click(object sender, RoutedEventArgs e) { //ComPort.Write(WriteBox.Text); byte[] X = { 0xAB, 0x10 }; ComPort.Write(X); }
public static void Trash_off() => ComPort.Write(new byte[] { 0xAB, 0x10 });
public static void State_electrometer() => ComPort.Write(new byte[] { 0xAB, 0x05 });
public static void State_full() => ComPort.Write(new byte[] { 0xAB, 0x07 });
public static void State_pressure() => ComPort.Write(new byte[] { 0xAB, 0x06 });
public static void State_valve() => ComPort.Write(new byte[] { 0xAB, 0x03 });