{ "info": { "author": "Taisuke Yamada", "author_email": "tai@remove-if-not-spam.rakugaki.org", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Embedded Systems", "Topic :: System :: Hardware" ], "description": "python-ucdev\n============\n\nPython library to access Cypress CY7C6521x (CY7C65211, CY7C65213, or CY7C65215) USB-Serial bridge (USB to UART/I2C/SPI/GPIO) chip.\nAlso includes library to access various chips over I2C/SPI. Currently includes driver for\n\n- Nordic nRF24L01 wireless tranceiver (SPI)\n- InvenSense MPU-6050 3-axis accelerometer + 3-axis gyroscope (I2C)\n- Honeywell HMC5883L 3-axis magnetometer (I2C)\n- Si4702 FM radio receiver (I2C for now, additional SPI-mode ongoing)\n\n## Usage (CY7C6521x)\n\n >>> from ucdev.cy7c65211 import CyUSBSerial, CyGPIO, CySPI\n >>> \n >>> # load DLL provided by Cypress\n >>> lib = CyUSBSerial(lib=\"cyusbserial\")\n >>>\n >>> # use first device found\n >>> dev = lib.find().next()\n >>>\n >>> # access GPIO\n >>> gpio = CyGPIO(dev)\n >>> gpio.set(3, 1)\n >>> ret = gpio.get(3)\n >>>\n >>> # access each GPIO pin\n >>> pin = gpio.pin(3)\n >>> pin.set(1)\n >>> ret = pin.get()\n >>>\n >>> # access SPI\n >>> spi = CySPI(dev)\n >>> ret = spi.send(\"any-data-to-be-clocked-out\")\n\n## Usage (nRF24L01)\n\n >>> from ucdev.nrf24 import *\n >>> \n >>> tx = nRF24(CySPI(dev), CE=CyGPIO(dev).pin(0))\n >>> tx.reset(MODE_SB|DIR_SEND)\n >>> tx.TX_ADDR = tx.RX_ADDR_P0 = 0xB3B4B5B6C2\n >>> tx.send(\"some-payload-len-of-max-32-bytes\")\n >>>\n >>> print tx.FIFO_STATUS.TX_EMPTY\n >>> print tx.CONFIG\n\n## Note\nThis requires cyusbserial.dll (or libcyusbserial.so) library\nprovided by Cypress.\n\nCurrent development focuses on GPIO and SPI features to\nuse Nordic nRF24 wireless tranceiver chip. See sample scripts\nunder bin/ folder for the detail.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tai/python-ucdev/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ucdev", "package_url": "https://pypi.org/project/ucdev/", "platform": "", "project_url": "https://pypi.org/project/ucdev/", "project_urls": { "Homepage": "https://github.com/tai/python-ucdev/" }, "release_url": "https://pypi.org/project/ucdev/0.0.3/", "requires_dist": [ "bitstring", "cffi", "IPython" ], "requires_python": "", "summary": "Library to access various I2C/SPI/GPIO-accessible chips over Cypress CY7C65211/3/5 USB-to-UART/I2C/SPI/GPIO bridge.", "version": "0.0.3" }, "last_serial": 3925396, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "24be96c99331620ddf26c7da56da9ead", "sha256": "185c4cac7dd7e92a0e040ff155ce27fd0b146b606c56736ebc18de065ec34cfe" }, "downloads": -1, "filename": "ucdev-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "24be96c99331620ddf26c7da56da9ead", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 30047, "upload_time": "2018-06-03T13:16:09", "url": "https://files.pythonhosted.org/packages/86/f5/fccdac2fe7a7e901e1a9b021b2996011e9b6fe1371adf6890b5a8b5c6d53/ucdev-0.0.1-py2.7.egg" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7aba272899f1d5b38a821d43d4694c3e", "sha256": "b8d4eefdce7cee77bacb564463c24930e06bf8d839e8cc5e5351f7033538fb84" }, "downloads": -1, "filename": "ucdev-0.0.2-py2.7.egg", "has_sig": false, "md5_digest": "7aba272899f1d5b38a821d43d4694c3e", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 62312, "upload_time": "2018-06-03T13:16:10", "url": "https://files.pythonhosted.org/packages/dc/e8/682345a47b13dbf1518ccca059f7844d4a7d65373870d841c0c42b624ad1/ucdev-0.0.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "3fe2f09aa15271b058ad52df794bd2ab", "sha256": "6e3bd1a305ee016d993cc4457f91608de4fa3943563c7ad462330d4bdcabd86c" }, "downloads": -1, "filename": "ucdev-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "3fe2f09aa15271b058ad52df794bd2ab", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 27565, "upload_time": "2018-06-03T13:16:06", "url": "https://files.pythonhosted.org/packages/6c/13/38fa81e9f5b2f4b5536e4b75aeb69a91510b8eedfc0ccb3b1ca12379e01a/ucdev-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b4db4f6fbbe73f315ead37cb6349c3e7", "sha256": "bc8ad6864845f69a2fef5c77691e2831819bd8176a3cef37e18e7207f005f8ad" }, "downloads": -1, "filename": "ucdev-0.0.2-py3.6.egg", "has_sig": false, "md5_digest": "b4db4f6fbbe73f315ead37cb6349c3e7", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 63493, "upload_time": "2018-06-03T13:16:11", "url": "https://files.pythonhosted.org/packages/06/f4/16be6c08e50fbcd5f296f8899ec26a458e4eff88b38a0b18d6be6417246c/ucdev-0.0.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "9c3b8be029aa0c01f0fb02900f858cb0", "sha256": "dc971a650f9de3a97048f7b25f65a934b7ff43148337a9226cc797377fc64bdf" }, "downloads": -1, "filename": "ucdev-0.0.2.tar.gz", "has_sig": false, "md5_digest": "9c3b8be029aa0c01f0fb02900f858cb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12541, "upload_time": "2018-06-03T13:16:12", "url": "https://files.pythonhosted.org/packages/10/62/64782f37a73060bc62ff2d524a8733bcbf747ac9e3c722861915a364b2bf/ucdev-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "19eb8293389f8744cb8777285d76ad07", "sha256": "6aa297bd8e391bd837413baf16dddec12832014b39dbbbc471b6271affdf52d1" }, "downloads": -1, "filename": "ucdev-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "19eb8293389f8744cb8777285d76ad07", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 28413, "upload_time": "2018-06-03T13:33:36", "url": "https://files.pythonhosted.org/packages/fa/9e/8e65c9052350c02b3eb48ebf406c23ba5e23eb087aa36dee55475315ef9b/ucdev-0.0.3-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "19eb8293389f8744cb8777285d76ad07", "sha256": "6aa297bd8e391bd837413baf16dddec12832014b39dbbbc471b6271affdf52d1" }, "downloads": -1, "filename": "ucdev-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "19eb8293389f8744cb8777285d76ad07", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 28413, "upload_time": "2018-06-03T13:33:36", "url": "https://files.pythonhosted.org/packages/fa/9e/8e65c9052350c02b3eb48ebf406c23ba5e23eb087aa36dee55475315ef9b/ucdev-0.0.3-py2-none-any.whl" } ] }