{"id":16243547,"url":"https://github.com/flyte/pcf8574","last_synced_at":"2025-07-27T21:40:54.982Z","repository":{"id":57451277,"uuid":"72664326","full_name":"flyte/pcf8574","owner":"flyte","description":"A library for the pcf8574 I2C IO expander chip","archived":false,"fork":false,"pushed_at":"2023-10-26T15:38:16.000Z","size":13,"stargazers_count":34,"open_issues_count":2,"forks_count":11,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-06-23T16:49:27.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-02T17:27:49.000Z","updated_at":"2025-01-14T19:07:57.000Z","dependencies_parsed_at":"2024-10-27T21:25:37.646Z","dependency_job_id":"3a851ce4-259c-4328-b51c-bdc312bd865b","html_url":"https://github.com/flyte/pcf8574","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.09523809523809523,"last_synced_commit":"c2843b9f20059f1600612dacdba55d8e493bcb57"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/flyte/pcf8574","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyte%2Fpcf8574","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyte%2Fpcf8574/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyte%2Fpcf8574/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyte%2Fpcf8574/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyte","download_url":"https://codeload.github.com/flyte/pcf8574/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyte%2Fpcf8574/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267429600,"owners_count":24085976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T14:15:20.444Z","updated_at":"2025-07-27T21:40:54.959Z","avatar_url":"https://github.com/flyte.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PCF8574\n=======\n\nThis is a Python library for use with the [PCF8574](http://www.nxp.com/documents/data_sheet/PCF8574.pdf) I2C IO expander chip. It abstracts the 8 bit IO port as a Python list, and allows the read/writing of individual pins or the whole port at once.\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 pcf8574\n```\n\n## Usage\n\n```python\nIn [1]: from pcf8574 import PCF8574\n\nIn [2]: i2c_port_num = 1\n\nIn [3]: pcf_address = 0x20\n\nIn [4]: pcf = PCF8574(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```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyte%2Fpcf8574","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyte%2Fpcf8574","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyte%2Fpcf8574/lists"}