15,745,005 members
See more:
``` How can I send this through/over the usb port. Do I have to do this with pyserial to send it over the usb port? if so how can I do it. The purpose is to send bits of 0s and 1s through the usb port (For example, for freq = 200, I will obtain a sequence of
4800/100 = 24 bits. This output buffer will be a repeating pattern
of 12 ones followed by 12 zeros (1111111111000000000000,..).```

What I have tried:

```<pre> How can I send this through/over the usb port. Do I have to do this with pyserial to send it over the usb port? if so how can I do it. The purpose is to send bits of 0s and 1s through the usb port (For example, for freq = 200, I will obtain a sequence of
4800/100 = 24 bits. This output buffer will be a repeating pattern
of 12 ones followed by 12 zeros (1111111111000000000000,..).```
Posted
Updated 14-May-17 1:54am

Solution 1

The answer you were given in your original post of this question, at Can someone help me change this code to Python?[^], has not changed.