{ "info": { "author": "Yihui Xiong", "author_email": "yihui.xiong@hotmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "GPIO NEXT\n=========\n[![](https://img.shields.io/pypi/v/gpio-next.svg)](https://pypi.org/project/gpio-next/)\n\n\nThis is a python ctypes binding for [libgpiod](https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/).\n\nIt's time to switch from the GPIO sysfs interface to gpiod to the linux GPIO character device (gpiod, stands for GPIO device)\n\n>Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use\nthe character device instead. This library encapsulates the ioctl calls and\ndata structures behind a straightforward API.\n\nfrom [kernel.org](https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/)\n\n## Requirements\n+ libgpiod1\n\n## Install\n```\nsudo apt install libgpiod1\npip install gpio-next\n```\n\n\n## Usage\n1. turn on/off an LED\n\n```python\nimport time\nfrom gpio_next import Output\n\nLED = Output(64, default_value=0)\nfor i in range(10):\n LED.write(i & 1)\n time.sleep(1)\n```\n\n2. detect button events\n\n```python\nfrom gpio_next import Input\n\nbutton = Input(203)\n\nfor i in range(10):\n print(button.wait())\n print(button.read())\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/voice-engine/gpio-next", "keywords": "gpio", "license": "LGPLV2", "maintainer": "", "maintainer_email": "", "name": "gpio-next", "package_url": "https://pypi.org/project/gpio-next/", "platform": "", "project_url": "https://pypi.org/project/gpio-next/", "project_urls": { "Homepage": "https://github.com/voice-engine/gpio-next" }, "release_url": "https://pypi.org/project/gpio-next/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "libgpiod python ctypes binding", "version": "0.0.3" }, "last_serial": 5331232, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "538d4e80ba8db1fc1baf91a415f5f4eb", "sha256": "b7959817927d16fb7c2668a06f18ea536bdec27d32d72ca37a3b20c8d6a50efe" }, "downloads": -1, "filename": "gpio-next-0.0.3.tar.gz", "has_sig": false, "md5_digest": "538d4e80ba8db1fc1baf91a415f5f4eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4608, "upload_time": "2019-05-29T08:54:01", "url": "https://files.pythonhosted.org/packages/e2/1c/dd623219ffe5e63420494a7aa5e2550f68a415fb2506660851da1c703fdb/gpio-next-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "538d4e80ba8db1fc1baf91a415f5f4eb", "sha256": "b7959817927d16fb7c2668a06f18ea536bdec27d32d72ca37a3b20c8d6a50efe" }, "downloads": -1, "filename": "gpio-next-0.0.3.tar.gz", "has_sig": false, "md5_digest": "538d4e80ba8db1fc1baf91a415f5f4eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4608, "upload_time": "2019-05-29T08:54:01", "url": "https://files.pythonhosted.org/packages/e2/1c/dd623219ffe5e63420494a7aa5e2550f68a415fb2506660851da1c703fdb/gpio-next-0.0.3.tar.gz" } ] }