ltr559


Nameltr559 JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummaryPython library for the LTR559 light and proximity
upload_time2023-11-08 10:02:22
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT License Copyright (c) 2018 Pimoroni Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords pi raspberry
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LTR559 Proximity/Presence/Light Sensor

[![Build Status](https://img.shields.io/github/actions/workflow/status/pimoroni/ltr559-python/test.yml?branch=main)](https://github.com/pimoroni/ltr559-python/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/pimoroni/ltr559-python/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/ltr559-python?branch=master)
[![PyPi Package](https://img.shields.io/pypi/v/ltr559.svg)](https://pypi.python.org/pypi/ltr559)
[![Python Versions](https://img.shields.io/pypi/pyversions/ltr559.svg)](https://pypi.python.org/pypi/ltr559)

Suitable for detecting proximity of an object at close range the LTR-559 is great for approach detection and ambient light compensation. The range is useful to around 5cm, and this is the type of sensor you might find in a smartphone to determine if you're holding it against your head.

# Installing

Stable library from PyPi:

* Just run `python3 -m pip install ltr559`

Latest/development library from GitHub:

* `git clone https://github.com/pimoroni/ltr559-python`
* `cd ltr559-python`
* `./install.sh --unstable`


1.0.0
-----

* Repackage to latest boilerplate
* Require i2cdevice>=1.0.0 (now using smbus2 instead of smbus)

0.1.1
-----

* Fix set_proximity_rate_ms, set_light_repeat_rate_ms and set_interrupt_mode (thanks @mkende)
* Improve library comments & docstrings

0.1.0
-----

* Breaking API change to class for CircuitPython compatibility
* Port to new i2cdevice set/get API

0.0.4
-----

* Removed rogue print() of reset status

0.0.3
-----

* Fix PyPi readme formatting

0.0.2
-----

* Added default light-sensor options
* Fixed bugs & linted

0.0.1
-----

* Initial Release

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "ltr559",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Philip Howard <phil@pimoroni.com>",
    "keywords": "Pi,Raspberry",
    "author": "",
    "author_email": "Philip Howard <phil@pimoroni.com>",
    "download_url": "https://files.pythonhosted.org/packages/7e/df/b0e17994aeeff9f42cdcf9558c3e807a9a9e06a002c831c4ba84e6c298ae/ltr559-1.0.0.tar.gz",
    "platform": null,
    "description": "# LTR559 Proximity/Presence/Light Sensor\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/pimoroni/ltr559-python/test.yml?branch=main)](https://github.com/pimoroni/ltr559-python/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/pimoroni/ltr559-python/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/ltr559-python?branch=master)\n[![PyPi Package](https://img.shields.io/pypi/v/ltr559.svg)](https://pypi.python.org/pypi/ltr559)\n[![Python Versions](https://img.shields.io/pypi/pyversions/ltr559.svg)](https://pypi.python.org/pypi/ltr559)\n\nSuitable for detecting proximity of an object at close range the LTR-559 is great for approach detection and ambient light compensation. The range is useful to around 5cm, and this is the type of sensor you might find in a smartphone to determine if you're holding it against your head.\n\n# Installing\n\nStable library from PyPi:\n\n* Just run `python3 -m pip install ltr559`\n\nLatest/development library from GitHub:\n\n* `git clone https://github.com/pimoroni/ltr559-python`\n* `cd ltr559-python`\n* `./install.sh --unstable`\n\n\n1.0.0\n-----\n\n* Repackage to latest boilerplate\n* Require i2cdevice>=1.0.0 (now using smbus2 instead of smbus)\n\n0.1.1\n-----\n\n* Fix set_proximity_rate_ms, set_light_repeat_rate_ms and set_interrupt_mode (thanks @mkende)\n* Improve library comments & docstrings\n\n0.1.0\n-----\n\n* Breaking API change to class for CircuitPython compatibility\n* Port to new i2cdevice set/get API\n\n0.0.4\n-----\n\n* Removed rogue print() of reset status\n\n0.0.3\n-----\n\n* Fix PyPi readme formatting\n\n0.0.2\n-----\n\n* Added default light-sensor options\n* Fixed bugs & linted\n\n0.0.1\n-----\n\n* Initial Release\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2018 Pimoroni Ltd.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Python library for the LTR559 light and proximity",
    "version": "1.0.0",
    "project_urls": {
        "GitHub": "https://www.github.com/pimoroni/ltr559-python",
        "Homepage": "https://www.pimoroni.com"
    },
    "split_keywords": [
        "pi",
        "raspberry"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e2b7d3ba717e669c8eea16a8b4b4f48438169b56322cbb0f60417cbac8ac565",
                "md5": "d8cb0225c667fe0f6032b3603026597e",
                "sha256": "0805f2d9ab43b2f622847ec71cb6fbca2b91b396aafb121d911172a366a56c3d"
            },
            "downloads": -1,
            "filename": "ltr559-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d8cb0225c667fe0f6032b3603026597e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 10669,
            "upload_time": "2023-11-08T10:02:21",
            "upload_time_iso_8601": "2023-11-08T10:02:21.405379Z",
            "url": "https://files.pythonhosted.org/packages/7e/2b/7d3ba717e669c8eea16a8b4b4f48438169b56322cbb0f60417cbac8ac565/ltr559-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7edfb0e17994aeeff9f42cdcf9558c3e807a9a9e06a002c831c4ba84e6c298ae",
                "md5": "2ec1ac9c6504555365d552183698fdf5",
                "sha256": "5efe5940faeeb42ee3a7b8fca3c0b4c6ceb6005e4dca59e20a086e8fe1bdaf29"
            },
            "downloads": -1,
            "filename": "ltr559-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2ec1ac9c6504555365d552183698fdf5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 15388,
            "upload_time": "2023-11-08T10:02:22",
            "upload_time_iso_8601": "2023-11-08T10:02:22.846711Z",
            "url": "https://files.pythonhosted.org/packages/7e/df/b0e17994aeeff9f42cdcf9558c3e807a9a9e06a002c831c4ba84e6c298ae/ltr559-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-08 10:02:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pimoroni",
    "github_project": "ltr559-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "ltr559"
}
        
Elapsed time: 0.20150s