Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python library for the LTR559 light and proximity

Project description

LTR559 Proximity/Presence/Light Sensor

Build Status Coverage Status PyPi Package Python Versions

Suitable for detecting proximity of an object at close range the LTR559 is great for approach detection and ambient light compensation. The range is useful to around 2cm, 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 sudo pip install ltr559

Latest/development library from GitHub:

  • git clone https://github.com/pimoroni/ltr559-python
  • cd ltr559-python
  • sudo ./install.sh

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.

Files for ltr559, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size ltr559-0.1.0-py2-none-any.whl (6.9 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size ltr559-0.1.0-py3-none-any.whl (6.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size ltr559-0.1.0.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page