Python library for the LTR559 light and proximity
Project description
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-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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ltr559-1.0.0.tar.gz
(15.4 kB
view hashes)
Built Distribution
ltr559-1.0.0-py3-none-any.whl
(10.7 kB
view hashes)