Skip to content

First draft for FT232H hardware support

Hans Achterbahn requested to merge feature-hardware-support-for-ft232h into main

Quelle für den Treiber: https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h/linux


How to - FT232H Setup

Install Libusb-1.0

sudo apt-get install libusb-1.0

Install CircuitPython

sudo pip3 install adafruit-circuitpython-lis3dh

Setup udev rules

# Create Rule
echo "# FT232H" | sudo tee --append /etc/udev/rules.d/11-ftdi.rules
echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0403\", ATTR{idProduct}==\"6014\", GROUP=\"plugdev\", MODE=\"0664\"" | sudo tee --append /etc/udev/rules.d/11-ftdi.rules
# Inform udev deamon about changes
sudo udevadm control --reload-rules
sudo udevadm trigger
# add actual user to plugdev group
sudo adduser $USER plugdev

Install FTDI Standard Library

pip3 install pyftdi

Check FTDI Standard Library to be installed correctly

python3  # or 'python' on Windows

then

from pyftdi.ftdi import Ftdi
Ftdi.show_devices()
exit()

Install Blinka + Blinka Libraries

pip3 install adafruit-blinka
pip3 install adafruit-blinka-pyportal

Set environment variable

Environment variable must be set, otherwise the blinka libraries won't work.

export BLINKA_FT232H=1

Install circuitpython-neopixel-spi

sudo pip3 install adafruit-circuitpython-dotstar

Example Script

import board
import adafruit_dotstar as dotstar
dots = dotstar.DotStar(board.SCK, board.MOSI, 30, brightness=0.2)

dots[0] = (255, 0, 0)
Edited by Hans Achterbahn

Merge request reports

Loading