4 ms·
Here a few options for you: https://www.adafruit.com/product/2264 https://www.adafruit.com/product/2264 - USB to GPIO (and other stuff) "Bus Pirate" Or get a
by invalidator 2y ago
Here a few options for you:
https://www.adafruit.com/product/2264 https://www.adafruit.com/product/2264 - USB to GPIO (and other stuff)
"Bus Pirate"
Or get a RasPi - it's not your desktop PC, but they're running Linux with direct GPIO access available in userspace.
- rendaw 2y agoThe FT232H you linked in the default UART configuration has no GPIO pins according to the datasheet pin description table. You need to change to MPSSE mode or similar using the flashing tool.
- jodoherty 2y agoThe Adafruit FT232H works out of the box with pyftdi and libftdi. You don't have to use any special tools or flash it in any way. The USB commands are handled by the underlying libraries. See page 9 of the datasheet here: https://ftdichip.com/wp-content/uploads/2020/07/DS_FT232H.pdf#page=9 https://ftdichip.com/wp-content/uploads/2020/07/DS_FT232H.pd... The async and sync bitbang columns denote the GPIO pins as D0-D7 and show them assigned to the 8 ADBUS pins that are provided on the breakout board. Assuming the udev rules are set up in Linux, you can simply install pyftdi, open the device, and start using the ADBUS pins as GPIO pins: https://eblot.github.io/pyftdi/gpio.html#setting-gpio-pin-state https://eblot.github.io/pyftdi/gpio.html#setting-gpio-pin-st... If you're using libftdi, you want to call ftdi_set_bitmode with the BITMODE_BITBANG enum value for the mode: https://www.intra2net.com/en/developer/libftdi/documentation/ftdi_8h.html#a83b41e900a1faf2ecc0546ce48ec7e70 https://www.intra2net.com/en/developer/libftdi/documentation... Then the ftdi_read_data and ftdi_write_data functions can be used to read or write to the ADBUS pins: https://www.intra2net.com/en/developer/libftdi/documentation/ftdi_8h.html#a72d87e30015c98bd0be22e7c8c873345 https://www.intra2net.com/en/developer/libftdi/documentation... https://www.intra2net.com/en/developer/libftdi/documentation/ftdi_8h.html#a01199788c36ba93352f155a79ea295e8 https://www.intra2net.com/en/developer/libftdi/documentation... You can then build a nice, simple high level GPIO interface over that if you want.