LTR559 Proximity/Presence/Light Sensor
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-pythoncd 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
Metadata
Release files for ltr559 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 | |
|---|---|---|---|
| ltr559-1.0.0.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ltr559-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.1 kB
Release files / ltr559-1.0.0.tar.gz
| Download URL | ltr559-1.0.0.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5efe5940faeeb42ee3a7b8fca3c0b4c6ceb6005e4dca59e20a086e8fe1bdaf29
|
|
BLAKE2b-256 checksum How to use checksums |
7edfb0e17994aeeff9f42cdcf9558c3e807a9a9e06a002c831c4ba84e6c298ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / ltr559-1.0.0-py3-none-any.whl
| Download URL | ltr559-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0805f2d9ab43b2f622847ec71cb6fbca2b91b396aafb121d911172a366a56c3d
|
|
BLAKE2b-256 checksum How to use checksums |
7e2b7d3ba717e669c8eea16a8b4b4f48438169b56322cbb0f60417cbac8ac565
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|