{ "info": { "author": "rp3tya", "author_email": "rpetya@hotmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "PCF8575\n=======\n\nPython library for the PCF8575 I2C IO expander. It abstracts the 16 bit IO port as a Python list, and allows the read/writing of individual pins or the whole port at once.\nThis is a modified version of the [PCF8574](https://github.com/flyte/pcf8574) library to support the extra 8 ports.\n\n## Installation\n\nThe library depends on the `smbus-cffi` package. You may need to `apt-get install libffi-dev` if you're on a debian based system. Otherwise, simply:\n\n```\npip install pcf8575\n```\n\n## Usage\n\n```python\nIn [1]: from pcf8575 import PCF8575\n\nIn [2]: i2c_port_num = 1\n\nIn [3]: pcf_address = 0x20\n\nIn [4]: pcf = PCF8575(i2c_port_num, pcf_address)\n\nIn [5]: pcf.port\nOut[5]: [True, True, True, True, True, True, True, True]\n\nIn [6]: pcf.port[0] = False\n\nIn [7]: pcf.port\nOut[7]: [False, True, True, True, True, True, True, True]\n\nIn [8]: pcf.port = [True, False, True, False, True, False, True, False]\n\nIn [9]: pcf.port\nOut[9]: [True, False, True, False, True, False, True, False]\n\nIn [10]: pcf.port[7]\nOut[10]: False\n\nIn [11]: pcf.port[6]\nOut[11]: True\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rp3tya/PCF8575", "keywords": "pcf8575 pcf8574 i2c i/o expander multiplexer", "license": "", "maintainer": "", "maintainer_email": "", "name": "pcf8575", "package_url": "https://pypi.org/project/pcf8575/", "platform": "", "project_url": "https://pypi.org/project/pcf8575/", "project_urls": { "Homepage": "https://github.com/rp3tya/PCF8575" }, "release_url": "https://pypi.org/project/pcf8575/0.2/", "requires_dist": [ "smbus-cffi" ], "requires_python": "", "summary": "Library for communication with PCF8575 IO expander over I2C", "version": "0.2" }, "last_serial": 5476307, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "293fcdd71cee2dbb98c6d37f51b82ade", "sha256": "88c3a23dc1caf64e44f1e81d44f63e43a7eb119576b1ee427e113646dfe6bc4e" }, "downloads": -1, "filename": "pcf8575-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "293fcdd71cee2dbb98c6d37f51b82ade", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3418, "upload_time": "2019-05-29T07:15:28", "url": "https://files.pythonhosted.org/packages/78/df/8613361a05d601fde4e053a1abd5f21b14c2398ad8b9256ee7b456e34211/pcf8575-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a317b2554b5a92d6b230e2d2baa07cc1", "sha256": "e4081cc1a54d6ccb0e9b5c3e361638ba45f59a932bd2418c1eeb8a5217f7d7d1" }, "downloads": -1, "filename": "pcf8575-0.1.tar.gz", "has_sig": false, "md5_digest": "a317b2554b5a92d6b230e2d2baa07cc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2386, "upload_time": "2019-05-29T07:15:30", "url": "https://files.pythonhosted.org/packages/db/c3/d848f030892d304c26ba582df41720134c46b0a72bd6d9afee23d0dd75da/pcf8575-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "5ebc5df6e3f5d32b9325a3e9220f56c9", "sha256": "f88918f369fdb4534e0982a3006125ad07466592f78c88b23582fc0db7466d98" }, "downloads": -1, "filename": "pcf8575-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "5ebc5df6e3f5d32b9325a3e9220f56c9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3445, "upload_time": "2019-07-02T10:37:19", "url": "https://files.pythonhosted.org/packages/57/13/47694dd9617d41011b213b6c17e1f6c9f80d60ce50a82128df0660628904/pcf8575-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c19693af2fd925ac611b03f8e9d2c9af", "sha256": "457544d385fed0d5daa189e564c9e0633b3883a67a73540b5d8f8de7abcac011" }, "downloads": -1, "filename": "pcf8575-0.2.tar.gz", "has_sig": false, "md5_digest": "c19693af2fd925ac611b03f8e9d2c9af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2388, "upload_time": "2019-07-02T10:37:21", "url": "https://files.pythonhosted.org/packages/89/b7/168a5d8f593f3219e2edf6b02ed484a652db8f80242fe3c635c19d0c1399/pcf8575-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ebc5df6e3f5d32b9325a3e9220f56c9", "sha256": "f88918f369fdb4534e0982a3006125ad07466592f78c88b23582fc0db7466d98" }, "downloads": -1, "filename": "pcf8575-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "5ebc5df6e3f5d32b9325a3e9220f56c9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3445, "upload_time": "2019-07-02T10:37:19", "url": "https://files.pythonhosted.org/packages/57/13/47694dd9617d41011b213b6c17e1f6c9f80d60ce50a82128df0660628904/pcf8575-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c19693af2fd925ac611b03f8e9d2c9af", "sha256": "457544d385fed0d5daa189e564c9e0633b3883a67a73540b5d8f8de7abcac011" }, "downloads": -1, "filename": "pcf8575-0.2.tar.gz", "has_sig": false, "md5_digest": "c19693af2fd925ac611b03f8e9d2c9af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2388, "upload_time": "2019-07-02T10:37:21", "url": "https://files.pythonhosted.org/packages/89/b7/168a5d8f593f3219e2edf6b02ed484a652db8f80242fe3c635c19d0c1399/pcf8575-0.2.tar.gz" } ] }