Name | pmw3901 JSON |
Version |
1.0.0
JSON |
| download |
home_page | None |
Summary | Python library for the PMW3901 optical flow sensor |
upload_time | 2024-05-10 09:29:52 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
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. |
keywords |
pi
raspberry
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
# PMW3901 / PAA5100JE 2-Dimensional Optical Flow Sensor
[![Build Status](https://img.shields.io/github/actions/workflow/status/pimoroni/pmw3901-python/test.yml?branch=main)](https://github.com/pimoroni/pmw3901-python/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/pimoroni/pmw3901-python/badge.svg?branch=main)](https://coveralls.io/github/pimoroni/pmw3901-python?branch=main)
[![PyPi Package](https://img.shields.io/pypi/v/pmw3901.svg)](https://pypi.python.org/pypi/pmw3901)
[![Python Versions](https://img.shields.io/pypi/pyversions/pmw3901.svg)](https://pypi.python.org/pypi/pmw3901)
# Installing
Stable library from PyPi:
* Just run `python3 -m pip install pmw3901`
Latest/development library from GitHub:
* `git clone https://github.com/pimoroni/pmw3901-python`
* `cd pmw3901-python`
* `./install.sh`
# Usage
The PAA5100JE has a slightly different init routine to the PMW3901, you should use the class provided to ensure it's set up correctly:
```
from pmw3901 import PAA5100
```
And for the PMW3901, continue using the old class:
```
from pmw3901 import PMW3901
```
The example `motion.py` demonstrates setting up either sensor, and accepts a `--board` argument to specify which you'd like to use.
1.0.0
-----
* Port to gpiod/gpiodevice
* Repackage to hatch/pyproject.toml
* BREAKING: spi_cs_gpio will not auto-detect SPI CS line, use spi_cs=(0, 1)
* BREAKING: Constants `BG_CS_FRONT_BCM` and `BG_CS_BACK_BCM` are now CS lines, not pins
0.1.0
-----
* Add init support for PAA5100JE
* Add frame capture support
0.0.1
-----
* Initial Release
Raw data
{
"_id": null,
"home_page": null,
"name": "pmw3901",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "Philip Howard <phil@pimoroni.com>",
"keywords": "Pi, Raspberry",
"author": null,
"author_email": "Philip Howard <phil@pimoroni.com>",
"download_url": "https://files.pythonhosted.org/packages/cf/5a/eb973e0022347ec35b486d82437c5d931f2085e89abc07b63f4044a6fa2d/pmw3901-1.0.0.tar.gz",
"platform": null,
"description": "# PMW3901 / PAA5100JE 2-Dimensional Optical Flow Sensor\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/pimoroni/pmw3901-python/test.yml?branch=main)](https://github.com/pimoroni/pmw3901-python/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/pimoroni/pmw3901-python/badge.svg?branch=main)](https://coveralls.io/github/pimoroni/pmw3901-python?branch=main)\n[![PyPi Package](https://img.shields.io/pypi/v/pmw3901.svg)](https://pypi.python.org/pypi/pmw3901)\n[![Python Versions](https://img.shields.io/pypi/pyversions/pmw3901.svg)](https://pypi.python.org/pypi/pmw3901)\n\n\n# Installing\n\nStable library from PyPi:\n\n* Just run `python3 -m pip install pmw3901`\n\nLatest/development library from GitHub:\n\n* `git clone https://github.com/pimoroni/pmw3901-python`\n* `cd pmw3901-python`\n* `./install.sh`\n\n# Usage\n\nThe PAA5100JE has a slightly different init routine to the PMW3901, you should use the class provided to ensure it's set up correctly:\n\n```\nfrom pmw3901 import PAA5100\n```\n\nAnd for the PMW3901, continue using the old class:\n\n```\nfrom pmw3901 import PMW3901\n```\n\nThe example `motion.py` demonstrates setting up either sensor, and accepts a `--board` argument to specify which you'd like to use.\n\n1.0.0\n-----\n\n* Port to gpiod/gpiodevice\n* Repackage to hatch/pyproject.toml\n* BREAKING: spi_cs_gpio will not auto-detect SPI CS line, use spi_cs=(0, 1)\n* BREAKING: Constants `BG_CS_FRONT_BCM` and `BG_CS_BACK_BCM` are now CS lines, not pins\n\n0.1.0\n-----\n\n* Add init support for PAA5100JE\n* Add frame capture support\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 PMW3901 optical flow sensor",
"version": "1.0.0",
"project_urls": {
"GitHub": "https://www.github.com/pimoroni/pmw3901-python",
"Homepage": "https://www.pimoroni.com"
},
"split_keywords": [
"pi",
" raspberry"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a02989d5102cc70605e93104d875a32aeae70b5d212788a6eae46f42df434a72",
"md5": "5ee7d40f4e47c68b3f669fbb71318181",
"sha256": "831adafd4f73ce0cd980dff6a193a10bdbd32e5b27670f6951399c4c2dfb63e1"
},
"downloads": -1,
"filename": "pmw3901-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5ee7d40f4e47c68b3f669fbb71318181",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 8770,
"upload_time": "2024-05-10T09:29:51",
"upload_time_iso_8601": "2024-05-10T09:29:51.048762Z",
"url": "https://files.pythonhosted.org/packages/a0/29/89d5102cc70605e93104d875a32aeae70b5d212788a6eae46f42df434a72/pmw3901-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cf5aeb973e0022347ec35b486d82437c5d931f2085e89abc07b63f4044a6fa2d",
"md5": "5bd856f0cee5e8f8dc1b271d3ae3afda",
"sha256": "5aafaee13ddab3163daec1c3977d79d1b09d2bd74db37368880c9fbcdc1387a2"
},
"downloads": -1,
"filename": "pmw3901-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "5bd856f0cee5e8f8dc1b271d3ae3afda",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 13813,
"upload_time": "2024-05-10T09:29:52",
"upload_time_iso_8601": "2024-05-10T09:29:52.756595Z",
"url": "https://files.pythonhosted.org/packages/cf/5a/eb973e0022347ec35b486d82437c5d931f2085e89abc07b63f4044a6fa2d/pmw3901-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-10 09:29:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pimoroni",
"github_project": "pmw3901-python",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "pmw3901"
}