Skip to main content

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 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 details)

Uploaded Source

Built Distribution

ltr559-1.0.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file ltr559-1.0.0.tar.gz.

File metadata

  • Download URL: ltr559-1.0.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for ltr559-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5efe5940faeeb42ee3a7b8fca3c0b4c6ceb6005e4dca59e20a086e8fe1bdaf29
MD5 2ec1ac9c6504555365d552183698fdf5
BLAKE2b-256 7edfb0e17994aeeff9f42cdcf9558c3e807a9a9e06a002c831c4ba84e6c298ae

See more details on using hashes here.

File details

Details for the file ltr559-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ltr559-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for ltr559-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0805f2d9ab43b2f622847ec71cb6fbca2b91b396aafb121d911172a366a56c3d
MD5 d8cb0225c667fe0f6032b3603026597e
BLAKE2b-256 7e2b7d3ba717e669c8eea16a8b4b4f48438169b56322cbb0f60417cbac8ac565

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page