Python wrapper around libFT4222.
Project description
python-ft4222
The FT4222H is a High/Full Speed USB2.0-to-Quad SPI/I2C device controller. This project provides (incomplete) python binding to LibFT4222 (user guide). It provides a similar api than LibFT4222 does.
The complete documentation can be found here
Example
import ft4222
import ft4222.I2CMaster
# list devices
nbDev = ft4222.createDeviceInfoList()
for i in range(nbDev):
print(ft4222.getDeviceInfoDetail(i, False))
# open device with default description 'FT4222 A'
dev = ft4222.openByDescription('FT4222 A')
# do a i2c transfers where full control is required
slave = 1 # address
# read one byte, don't stop
data = dev.i2cMaster_ReadEx(slave, ft4222.I2CMaster.Flag.REPEATED_START, 1)[0]
# read another 5 bytes
data += dev.i2cMaster_ReadEx(slave, ft4222.I2CMaster.Flag.NONE, 5)
# another byte, than stop
data += dev.i2cMaster_ReadEx(slave, ft4222.I2CMaster.Flag.STOP, 1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ft4222-1.2.tar.gz
(2.3 MB
view hashes)
Built Distributions
ft4222-1.2-cp38-cp38-win_amd64.whl
(303.9 kB
view hashes)
ft4222-1.2-cp37-cp37m-win_amd64.whl
(301.6 kB
view hashes)
Close
Hashes for ft4222-1.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 119c0d0950302626fa0636c90b73c026e5c46e6de19033672f477cbe7ee2aaff |
|
MD5 | 6333a69c1c1f471ba9bd02e049a73621 |
|
BLAKE2b-256 | 735858a0c6acfbd02ff289a3fe231ed8d9f393def118482b0606516287f1151e |
Close
Hashes for ft4222-1.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f23cf8bab3cf0e2e680c27cf058964c7d0a32a83d9aa9af97db6becdf4d54b4a |
|
MD5 | f2af4d58919e52e999c2b63e7cecd9bf |
|
BLAKE2b-256 | 0788af8675cdd6b0684e20a0cd8148664d3b705d167af137cadf803bb33c73f1 |
Close
Hashes for ft4222-1.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e82f49aa101cf5af96e3ee081eccc2582b9de8193feb59af23edbda968d95449 |
|
MD5 | a127365a725db215669fe1f57ed9f0b4 |
|
BLAKE2b-256 | 17b8bf5a3cb2437f532496e5d714e19b5dbf939a21303ccba79229687d7139d8 |
Close
Hashes for ft4222-1.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41d0cba9dd7277a0b094d1719bbe247ea95867ae55ab84ef81cb015d370a2fb7 |
|
MD5 | 395e07fd1debdbfae4bc6c346f99366e |
|
BLAKE2b-256 | 03e1bafe59618d5269e530ccc79329de22efb1e22a32f5945a80f368292da0ef |
Close
Hashes for ft4222-1.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a88575e7dcf390372623286bd699edeee572d438f087a5943369b3f1a420b9f7 |
|
MD5 | 234bce097cd3aaa97c4cf4c06ea2ef01 |
|
BLAKE2b-256 | ffe577837d41415b505ab4a70ff077f0edbca70da0684b22a45d35dc6ca8378d |