{ "info": { "author": "Takafumi Narise", "author_email": "narise.pub@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: Other OS", "Programming Language :: Python :: 2.7", "Topic :: Scientific/Engineering :: Bio-Informatics", "Topic :: Scientific/Engineering :: Information Analysis" ], "description": "CsCntlr (Color-sensor Controller)\n=================================\n\nA python package for the color sensor S11059-02DT.\n\nInstallation\n============\n\n::\n\n pip install CsCntlr\n\nGetting Started\n===============\n\n::\n\n # First, create a CsCntlr instance\n from CsCntlr import *\n cs = CsCntlr()\n\n # Then, select the mode to be used\n cs.useFixedPeriodMode()\n cs.useManualSettingMode()\n\n # You can measure colors by using the code below\n cs.cntlr.auto()\n\nExamples for Fixed Period Mode\n==============================\n\n::\n\n from CsCntlr import *\n cs = CsCntlr()\n cs.useFixedPeriodMode()\n\n # You can specify the gain and the integration time (tint)\n cs.cntlr.auto(gain='low', tint=2)\n\n # gain should be 'low' or 'high' (low:high = 1:10)\n cs.cntlr.auto(gain='lolo')\n cs.cntlr.auto(gain='hi')\n\n # tint should be from 0 to 3 \n # 3: 179.2 ms, 2: 22.4 ms, 1: 1.4 ms, 0: 0.0875 ms (per color)\n cs.cntlr.auto(tint=100)\n cs.cntlr.auto(tint='hi')\n\nExamples for Manual Setting Mode\n================================\n\nIn this mode, the sensor goes to standby mode after the measurement.\n\n::\n\n from CsCntlr import *\n cs = CsCntlr()\n cs.useManualSettingMode()\n\n # You can specify the manual integration time (man_tint)\n cs.cntlr.auto(gain='high', man_tint=100, tint=0)\n cs.cntlr.auto(man_tint=1)\n\n # gain should be 'low' or 'high' (low:high = 1:10)\n cs.cntlr.auto(gain='lolo')\n cs.cntlr.auto(gain='hi')\n\n # tint should be from 0 to 3\n # 3: 358.4 ms, 2: 44.8 ms, 1: 2.8 ms, 0: 0.175 ms (per color)\n cs.cntlr.auto(tint=100)\n cs.cntlr.auto(tint='hi')\n\n # man_tint should be from 0 to 65535\n # measurement_time = tint * man_tint (per color)\n cs.cntlr.auto(gain='high', man_tint=70000, tint=1)\n cs.cntlr.auto(man_tint='hi')\n\nNote: CsCntlr is Singleton\n==========================\n\n::\n\n from CsCntlr import *\n cs = CsCntlr()\n cs.useManualSettingMode()\n\n cs1 = CsCntlr()\n cs1.useFixedPeriodMode()\n\n # now, cs is changed to the Fixed Period Mode\n print(cs.cntlr_mode)\n # Fixed Period Mode", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/NariseT/CsCntlr", "keywords": "Color-sensor S11059-02DT Raspberry-Pi", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "CsCntlr", "package_url": "https://pypi.org/project/CsCntlr/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/CsCntlr/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/NariseT/CsCntlr" }, "release_url": "https://pypi.org/project/CsCntlr/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A python package for the color sensor S11059-02DT", "version": "0.1.0" }, "last_serial": 2236892, "releases": { "0.0.5": [ { "comment_text": "", "digests": { "md5": "98b3106bcbaa5a108b7bb558bc0a470b", "sha256": "6cb6b6cf4889b26214a361c8b20d73cfed173c6bc1a344552454f740b2970421" }, "downloads": -1, "filename": "CsCntlr-0.0.5.tar.gz", "has_sig": false, "md5_digest": "98b3106bcbaa5a108b7bb558bc0a470b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4880, "upload_time": "2016-06-10T02:47:17", "url": "https://files.pythonhosted.org/packages/fd/e1/ff0f13d258c6b4be956d491372e9ddc6ab83e2e57cbd86aa24873a7073fd/CsCntlr-0.0.5.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "422b0dd0f7ecd9ef4a02fd4d03650c94", "sha256": "2a2fec2e72373c17ec14b6c2d44329f22ad88c1d19760bfeec60a2b73ef2f5b5" }, "downloads": -1, "filename": "CsCntlr-0.0.8.tar.gz", "has_sig": false, "md5_digest": "422b0dd0f7ecd9ef4a02fd4d03650c94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4757, "upload_time": "2016-07-21T23:38:21", "url": "https://files.pythonhosted.org/packages/b8/6c/aa55933b3c602a352b6771e0998bbd877a34d85eabc492ec8c906e0ab3e7/CsCntlr-0.0.8.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "7757bf4964c48722f0679399340b9a5b", "sha256": "a70c5faf44aff5c12bebca91a12de1cfcc7ae0d054dda72b485f38de8b53a4e9" }, "downloads": -1, "filename": "CsCntlr-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7757bf4964c48722f0679399340b9a5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4776, "upload_time": "2016-07-22T00:41:08", "url": "https://files.pythonhosted.org/packages/45/66/2b1c09914ebbdebdbafaaeafb67fdf669688a7ff1c2fdcff54605396f50c/CsCntlr-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7757bf4964c48722f0679399340b9a5b", "sha256": "a70c5faf44aff5c12bebca91a12de1cfcc7ae0d054dda72b485f38de8b53a4e9" }, "downloads": -1, "filename": "CsCntlr-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7757bf4964c48722f0679399340b9a5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4776, "upload_time": "2016-07-22T00:41:08", "url": "https://files.pythonhosted.org/packages/45/66/2b1c09914ebbdebdbafaaeafb67fdf669688a7ff1c2fdcff54605396f50c/CsCntlr-0.1.0.tar.gz" } ] }