Path for Windows10 Python 2.7 USB COM6
<p>I am trying to access my USB COM6 port on my windows10 using python2.7</p>

<p>The original code was for Linux was:  </p>

<pre><code>board = MultiWii("/dev/ttyUSB0")
</code></pre>

<p>My modified code for Windows is:</p>

<pre><code>board = MultiWii("/COM6")
</code></pre>

<p>Is the correct code?</p>

<p>No, <code>/COM6</code> is not correct in Windows.  Try <code>COM6</code> and <code>\\.\COM6</code>.  To write the latter one inside a string literal in Python, you probably have to escape the back slashes, so you would write <code>"\\\\.\\COM6"</code>.</p>

python python-2.7 usb hardware