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-0.9.tar.gz
(1.7 MB
view hashes)
Built Distributions
ft4222-0.9-cp38-cp38-win_amd64.whl
(300.5 kB
view hashes)
ft4222-0.9-cp37-cp37m-win_amd64.whl
(298.7 kB
view hashes)
Close
Hashes for ft4222-0.9-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29b1130c16e917971883655a44fbfe74f23ce53a3c9857bd2d3c5ac38f5dfe3 |
|
MD5 | 3a9498e2fc5a02f8c1c6179f04383512 |
|
BLAKE2b-256 | 21b7eb495d6f33f1a395e61e415f92c9ad7a49dc33419e7d8b5f91c093edc898 |
Close
Hashes for ft4222-0.9-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67713f4c213c2057b78a121ada4f3adb237cd0ddf0bb555dc2ca9c90a1533cfd |
|
MD5 | be485e464893e4bfda9263e9253f44ba |
|
BLAKE2b-256 | 773261f5c0742a40c92cb40b4bcd4755d544fdfb76af3c9ea1a5fc9fab94f195 |
Close
Hashes for ft4222-0.9-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 274beb1abdb46f1477c8f63a81fc2915c2b05b1aaf9866fe6296eebe6e2c8066 |
|
MD5 | e284e6fda6f61708959eefc15088d0ee |
|
BLAKE2b-256 | 9da8fc69987d9f39fae5df8cc1c4102598b341daf64c90db56c665addbe720f2 |
Close
Hashes for ft4222-0.9-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35cdeb099b973a7574fb247858f3cc259a08283e05dd6b65addcdbc134840212 |
|
MD5 | 63719056b56fc7acba7db38f18ac6515 |
|
BLAKE2b-256 | cb29267d827d6ec31e12f2e0c8b12c83e9ee64d3b56b195f119cec3162c033ef |
Close
Hashes for ft4222-0.9-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c70642deb37b2f952a5a56a41d8656e6ad46323efc1233d4945d37ecbe44b5c |
|
MD5 | 224a35f6c4b36b0455a654da9f03690e |
|
BLAKE2b-256 | f04dfc0a76ae3e7e344c6de8e93d2cf8640885cdc4606772ac643b97182d4a99 |