Skip to main content

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


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 details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ft4222-1.2.1-cp38-cp38-win_amd64.whl (304.4 kB view details)

Uploaded CPython 3.8Windows x86-64

ft4222-1.2.1-cp38-cp38-manylinux1_x86_64.whl (524.4 kB view details)

Uploaded CPython 3.8

ft4222-1.2.1-cp37-cp37m-win_amd64.whl (302.2 kB view details)

Uploaded CPython 3.7mWindows x86-64

ft4222-1.2.1-cp37-cp37m-manylinux1_x86_64.whl (485.9 kB view details)

Uploaded CPython 3.7m

ft4222-1.2.1-cp36-cp36m-manylinux1_x86_64.whl (484.9 kB view details)

Uploaded CPython 3.6m

File details

Details for the file ft4222-1.2.1.tar.gz.

File metadata

  • Download URL: ft4222-1.2.1.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for ft4222-1.2.1.tar.gz
Algorithm Hash digest
SHA256 cadafeaa4681f81680823234def825e64bdd09a2d6264bfff44e10e003f54d2e
MD5 bfa286e771d0b6534b377a6aa1defa3d
BLAKE2b-256 14c9f0f9486dcddbdc3d84d09e90e9bb979d1b33ecd6e7a2c6577f2650bce9e8

See more details on using hashes here.

File details

Details for the file ft4222-1.2.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: ft4222-1.2.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 304.4 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for ft4222-1.2.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ce798138cb8e6d1f47d8f7f70a1dc73b244b4606c2a87d04ec6c21e85582a790
MD5 06b6d86f52ac55cd3a54f411c9192221
BLAKE2b-256 bd65985da566b554c1450504ccf18df11381f1c8fb907cd1541dc95f273a68f6

See more details on using hashes here.

File details

Details for the file ft4222-1.2.1-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: ft4222-1.2.1-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 524.4 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for ft4222-1.2.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7d041273c7d2f0c77dde60189e7acb4fbf627773c4df325ec6705426895a1501
MD5 30aca9e8610b71ee7174bbb68a1a60ca
BLAKE2b-256 03fb101ef599462940dcfb409ade7eb19c5f33a3bf31eade2caeccf2a4bcaea8

See more details on using hashes here.

File details

Details for the file ft4222-1.2.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: ft4222-1.2.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 302.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for ft4222-1.2.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 10a1570c37a6d22dcf42653786fb07be3e26649e7252e7a5753ce00cab4bb03c
MD5 adf0024872bc9422adf147140f87aa9d
BLAKE2b-256 6361750c895072fff2c8b4f4516b16eb39cf807482ccf3a237207826a96de676

See more details on using hashes here.

File details

Details for the file ft4222-1.2.1-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: ft4222-1.2.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 485.9 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for ft4222-1.2.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f0ad47e21c8670bcf4c61531f8577a057b7b91fb5174d561c23495f1221e7b0a
MD5 d4a6994a36d2b0aa1c361e171768f3d4
BLAKE2b-256 abc640063779a1b95cc247304cd09a33752fdc9545f893ec9a86498a686b2cdd

See more details on using hashes here.

File details

Details for the file ft4222-1.2.1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: ft4222-1.2.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 484.9 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for ft4222-1.2.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b5a7c9dc1c08569184f56e5dfaaedbe412c9571f4ec46043deabc11372a2a928
MD5 b17a4011bfd442e2bbc4cf86e29143da
BLAKE2b-256 b4b07aec6fb32c8e2e23e195a3160a7d5e167ef71caf8da1ff76c3025ed71546

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page