public static void SendCommand(this ISmartScopeUsbInterface i, PIC_COMMANDS cmd, bool async = false) { byte[] toSend = new byte[2] { HEADER_CMD_BYTE, (byte)cmd }; i.WriteControlBytes(toSend, async); }
public void SendCommand(PIC_COMMANDS cmd, bool async = false) { byte[] toSend = new byte[2] { HEADER_CMD_BYTE, (byte)cmd }; usb.WriteControlBytes(toSend, async); }