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.1.tar.gz
(1.8 MB
view hashes)
Built Distributions
ft4222-1.0.1-cp38-cp38-win_amd64.whl
(300.5 kB
view hashes)
ft4222-1.0.1-cp37-cp37m-win_amd64.whl
(298.7 kB
view hashes)
Close
Hashes for ft4222-1.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a490e03e0a7ba571dec557085205586252fcd0787ab02dba685f2ff6d40d972 |
|
MD5 | 05fab8329412520a3f0c937d8894ad64 |
|
BLAKE2b-256 | 72f78fe4891d9ca81093c38103bb7ad5ff991f16f77f703c697c032ec9215852 |
Close
Hashes for ft4222-1.0.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2820581dba19171e0d962a0f53f6bd59f054e868a0d10508cdc035a603f18e20 |
|
MD5 | 1924e6dc5824b785a6fa679695d45405 |
|
BLAKE2b-256 | d65c0c26f91ef0edd0eff42e050756a2737f8f0efa7768a85b538a840e8573ea |
Close
Hashes for ft4222-1.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 518ecf5b1a1738fadee259ac9e950db20fbe95d464685ae8951502d1f28a48c8 |
|
MD5 | 56c48ae49507a161e2ba4a8f144dad8a |
|
BLAKE2b-256 | daff54dd1b0454e285969df5da54129835711ebbc80265f016862e38e33bcc91 |
Close
Hashes for ft4222-1.0.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1d135bb74972bd7162d1fa1325609bc13d7ad91deeb8a9fe51f6f4d37dea868 |
|
MD5 | ca19127f704bb97137f3c0d45f3809bd |
|
BLAKE2b-256 | 4437d53a5ef9da9c4ee4948ba299699304deceabfeeb0e84e2da356c0fea037d |
Close
Hashes for ft4222-1.0.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 706009b1e36d94fafbe86a897a9619e24b5fe7016cb69633f848b8f256258f77 |
|
MD5 | 78581ababa3c239cc09bf08d40879c91 |
|
BLAKE2b-256 | 143f8e332c0d832c897886ea3adfdef91bad1aa77ffd0689ea22c013507eeb0d |