-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the SPI_with_Adafruit_FT232H wiki!
This code allows you to control SPI communication from your PC, using an Adafruit FT232H breakout board (https://www.adafruit.com/product/2264).
Your computer will be the Master, and determine the clock (SCKL) frequency.
This code is based on the following tutorials:
The first time, set up the drivers and libraries following Tutorial No.1
If you're using Windows, make sure the FT232H appears in device manager (under libusbK USB devices), otherwise reinstall the driver from Zadig, as explained in Tutorial No.1:
-
Open Zadig: select "options>list all devices" -
"USB serial converter" -
Driver: "libusbK (v3.0.7.0)" -
Install Driver
Adapt the code to yor needs. Feel free to modify:
- The CS pin that you prefer
- The BAUD rate
- The message sent
Connect SCLK, MISO and MOSI appropriately to your receiving slave device.
Connect CS from the pin you initialize in the code.
From Windows, don't run script from your IDE.
Open terminal or cmd line instead.
Run this line:
set BLINKA_FT232H=1
And then this line:
python SPIconnect.py