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
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 | |
|---|---|---|---|
| pmw3901-1.0.0.tar.gz | 13.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pmw3901-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|