PMW3901 / PAA5100JE 2-Dimensional Optical Flow Sensor
Installing
Stable library from PyPi:
- Just run
python3 -m pip install pmw3901
Latest/development library from GitHub:
git clone https://github.com/pimoroni/pmw3901-pythoncd 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_BCMandBG_CS_BACK_BCMare now CS lines, not pins
0.1.0
- Add init support for PAA5100JE
- Add frame capture support
0.0.1
- Initial Release
Metadata
Release files for pmw3901 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pmw3901-1.0.0.tar.gz | 13.8 kB | Without provenance | Details for pmw3901-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pmw3901-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pmw3901-1.0.0-py3-none-any.whl |
Total release size: 22.6 kB
Release files / pmw3901-1.0.0.tar.gz
| Download URL | pmw3901-1.0.0.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5aafaee13ddab3163daec1c3977d79d1b09d2bd74db37368880c9fbcdc1387a2
|
|
BLAKE2b-256 checksum How to use checksums |
cf5aeb973e0022347ec35b486d82437c5d931f2085e89abc07b63f4044a6fa2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Release files / pmw3901-1.0.0-py3-none-any.whl
| Download URL | pmw3901-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
831adafd4f73ce0cd980dff6a193a10bdbd32e5b27670f6951399c4c2dfb63e1
|
|
BLAKE2b-256 checksum How to use checksums |
a02989d5102cc70605e93104d875a32aeae70b5d212788a6eae46f42df434a72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Security for pmw3901 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.