Konubinix' opinionated web of thoughts

Ft232rl

Fleeting

pinout

In gpio mode

In serial mode

https://www.electrothinks.com/2024/02/ft232rl-usb-to-serial-uart-module.html

trying the ft232rl

pip install pyftdi
ftdi_urls.py
Available interfaces:
  ftdi://ftdi:232:A50285BI/1  (FT232R USB UART)

I plugged the LED on the first GPIO pin (TXD), hence the value 0b00000001

from pyftdi.gpio import GpioController
import time

g = GpioController()
g.open_from_url(url)

g.set_direction(0b00000001, 0b00000001)

g.write(0b0000001)
time.sleep(1)
g.write(0b0000000)

I tried connecting on the RXD port (GPIO1) and used the value 0b00000010 instead of 0b00000001 and it worked.