Using the FT232H for running the PyPortal examples will require 3 main components. You will need the FT232H itself and a TFT display such as the 2.8" ILI9341 touchscreen breakout.

The first thing you will need to do is be sure the solderable jumpers on the back of the TFT breakout is setup to use SPI. By default, all of these breakouts are configured to use 8-bit data mode and some soldering will be required.

Wouldn't it be cool to drive a tiny OLED display, read a
$14.95
In Stock

Wiring

The pinouts for each of the TFT display breakouts is about the same, so you can use this diagram for all of them.
  • 5V on the FT232H connects to Vin on the TFT
  • GND on the FT232H connects to GND on the TFT
  • D0 on the FT232H connects to CLK on the TFT
  • D1 on the FT232H connects to MOSI on the TFT
  • D4 on the FT232H connects to CS on the TFT
  • D5 on the FT232H connects to D/C on the TFT
  • D6 on the FT232H connects to RST on the TFT

Software Setup

To run the Examples off your Mac, Windows, or Linux computer, first you'll need to be sure that you have your computer set up to run Blinka. You can find more information on getting your computer set up in our CircuitPython Libraries on any Computer with FT232H guide.

Additionally, you will also need PIL and NumPy. Since the installation procedure can vary from system to system, we linked to each package's installation instructions.

Pillow/PIL

This is the Python Imaging Library which is used to render the plots onto bitmaps that can be sent to the TFT display. Install instructions are here:

NumPy

This is the Numerical Python library and is an open source Python library that’s the universal standard for working with numerical data in Python, and it’s at the core of the scientific Python and PyData ecosystems. This is used to quickly process graphical data so that it can be sent to the display efficiently.

Install the PyPortal Library

You'll next want to install the Blinka PyPortal library. Installing this library will also install all of the dependencies, so it's really easy to setup. Just run the following command:

pip3 install adafruit-blinka-pyportal

This guide was first published on Jul 09, 2020. It was last updated on Jul 09, 2020.

This page (FT232H Setup) was last updated on Feb 09, 2021.

Text editor powered by tinymce.