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.1.tar.gz
(2.3 MB
view hashes)
Built Distributions
ft4222-1.2.1-cp38-cp38-win_amd64.whl
(304.4 kB
view hashes)
ft4222-1.2.1-cp37-cp37m-win_amd64.whl
(302.2 kB
view hashes)
Close
Hashes for ft4222-1.2.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce798138cb8e6d1f47d8f7f70a1dc73b244b4606c2a87d04ec6c21e85582a790 |
|
MD5 | 06b6d86f52ac55cd3a54f411c9192221 |
|
BLAKE2b-256 | bd65985da566b554c1450504ccf18df11381f1c8fb907cd1541dc95f273a68f6 |
Close
Hashes for ft4222-1.2.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d041273c7d2f0c77dde60189e7acb4fbf627773c4df325ec6705426895a1501 |
|
MD5 | 30aca9e8610b71ee7174bbb68a1a60ca |
|
BLAKE2b-256 | 03fb101ef599462940dcfb409ade7eb19c5f33a3bf31eade2caeccf2a4bcaea8 |
Close
Hashes for ft4222-1.2.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10a1570c37a6d22dcf42653786fb07be3e26649e7252e7a5753ce00cab4bb03c |
|
MD5 | adf0024872bc9422adf147140f87aa9d |
|
BLAKE2b-256 | 6361750c895072fff2c8b4f4516b16eb39cf807482ccf3a237207826a96de676 |
Close
Hashes for ft4222-1.2.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0ad47e21c8670bcf4c61531f8577a057b7b91fb5174d561c23495f1221e7b0a |
|
MD5 | d4a6994a36d2b0aa1c361e171768f3d4 |
|
BLAKE2b-256 | abc640063779a1b95cc247304cd09a33752fdc9545f893ec9a86498a686b2cdd |
Close
Hashes for ft4222-1.2.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5a7c9dc1c08569184f56e5dfaaedbe412c9571f4ec46043deabc11372a2a928 |
|
MD5 | b17a4011bfd442e2bbc4cf86e29143da |
|
BLAKE2b-256 | b4b07aec6fb32c8e2e23e195a3160a7d5e167ef71caf8da1ff76c3025ed71546 |