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.0.tar.gz
(1.7 MB
view hashes)
Built Distributions
ft4222-1.0-cp38-cp38-win_amd64.whl
(300.5 kB
view hashes)
ft4222-1.0-cp37-cp37m-win_amd64.whl
(298.7 kB
view hashes)
Close
Hashes for ft4222-1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c430845269fb3973eda0997529906dc11f64b97ec0bf910c6d959dbd1c4c62e7 |
|
MD5 | a6f80f24447fad5e92d092bf344d639a |
|
BLAKE2b-256 | 619c93b7bd612bffe2fd4305a408cbf31490ace961ac43889919555acd1738c6 |
Close
Hashes for ft4222-1.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7722417b6e4e6c3f1a201add1798d132586c7cc2232ca663a6dda065576bae8e |
|
MD5 | b9b45a0219377a5a858bfe579fe1706b |
|
BLAKE2b-256 | b15f2d7721fb228d464364a63759c658315051d7d93839a00fd883794e91dcec |
Close
Hashes for ft4222-1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54693487311d95732f80234406ae4fe372cc7e65430a5a54580082be09ccf1e |
|
MD5 | 9f64deacd79d8573fb5e0dc77180f5e0 |
|
BLAKE2b-256 | 7020b994fd3ec7d14df197ec4d2af7fde0c9bf617aaa49335a5a8a8cf4245369 |
Close
Hashes for ft4222-1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b50a03198ae713d311280ba8d5022d785f658df3b2e8d1a61013c12f82a42239 |
|
MD5 | 89d28e2a2c17d1f0c30e8ff1926b424c |
|
BLAKE2b-256 | 765245d307f841fd18b06287d9ec8ac1595481fdcd1947b9bc7b52dec79850a1 |
Close
Hashes for ft4222-1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 957335592f8fe7f26c10e4adf4a93a47b8fbf8841f4b68b1d05cb7717d07436d |
|
MD5 | 3f82a39d673f10bc10fa029e5beb9026 |
|
BLAKE2b-256 | e2f56664e44aa369d2ba4116899be5212642935a89ebb4da178cd63b4266054a |