Datasheet
GPIO
Using the GPIO pins on the FT232H board is easy with the Python GPIO library that was installed. To demonstrate the usage I'll
show a simple example of blinking an LED and reading a digital input.
To get started you'll need the following parts:
Assembled FT232H breakout board.
One LED of any color.
A small resistor between ~330-1000 Ohms to limit current through the LED.
Jumper wires & breadboard.
Connect the parts as follows:
FT232H C0 to the LED anode (longer leg)
LED cathode (shorter leg) to one leg of the resistor.
Other resistor leg to FT232H GND.
FT232H D7 to FT232H GND. This jumper wire will switch between reading a low value or high value on the D7 input by
moving it between FT232H GND and 5V.
You can see a photo of this setup below:
With this configuration pin C0 will be a digital output that controls if the LED is on or off, depending on the level of the C0 output.
Pin D7 will be a digital input that reads if it's at a high level (3-5 volts) or low level (ground).
Now create a file named gpio_test.py in a text editor and fill it with the following Python code:
# Import standard Python time library.
import time
# Import GPIO and FT232H modules.
import Adafruit_GPIO as GPIO
import Adafruit_GPIO.FT232H as FT232H
# Temporarily disable the built-in FTDI serial driver on Mac & Linux platforms.
FT232H.use_FT232H()
# Create an FT232H object that grabs the first available FT232H device found.
ft232h = FT232H.FT232H()
© Adafruit Industries https://learn.adafruit.com/adafruit-ft232h-breakout Page 24 of 36










