title: USB to GPIO/SPI/I2C/UART for regular Windows 10 PC? Simular to Raspberry Pi 40 pin Header
body: <p>Does anybody know of a company that sells a USB cable for a normal non-IoT windows 10 PC that can converts a USB to all of the following buses on 40 pin Raspberry pi like header?  Example: USB->GPIO,I2C,SPI,UART, etc..</p>
  
  <p>The closest thing I can find is a:</p>
  
  <p><a href="https://store.digilentinc.com/digital-discovery-portable-logic-analyzer-and-digital-pattern-generator/" rel="nofollow noreferrer">Digital Discovery Logic Analyser from digilentinc.com</a></p>
  
  <p>This works to convert PC USB into GPIO/I2C/SPI etc... except I was looking for something smaller with less wires...having only a 40 pin header or less...similar raspberry pi 40-pin Header except being driven from a USB connected to a PC instead...  Has anybody seen this type of product for sale that can convert from PC-USB to 40-pin header with all the listed buses?</p>
  
  <p>Also, I want to be able to program this USB convert device through <strong>Windows UWP</strong> using the "Windows.Devices" Api instead of proprietary driver DLL API... haven't really found that yet...  Example:</p>
  
  <pre><code>// C# Program GPIO connected to USB dongle of regular PC...
  using Windows.Devices.GPIO;
  ...
  private void InitGPIO()
  {
      var gpio_ctrl = GpioController.GetDefault();
      // Check GPIO state
      if (gpio_ctrl == null)
      {
          this.pin = null;
          this.status.Text = "ERROR: No GPIO controller found!";
          return;
      }
      // Setup the GPIO pin
      this.pin = gpio_ctrl.OpenPin(LED_PIN);
      // Check to see that pin is Ok
      if (pin == null)
      {
          this.status.Text = "ERROR: Can't get pin!";
          return;
      }
      this.pin.SetDriveMode(GpioPinDriveMode.Output);
      this.pinValue = GpioPinValue.Low; // turn off
      this.pin.Write(this.pinValue);
      this.status.Text = "Good to go!";
  }
  </code></pre>
  
  <p>I know I can do something similar with Windows IoT core running on a raspberry pi, however, i wanted to use my regular laptop instead.</p>