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 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.

Source Distribution

ltr559-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distributions

ltr559-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

ltr559-0.1.0-py2-none-any.whl (6.9 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: ltr559-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for ltr559-0.1.0.tar.gz
Algorithm Hash digest
SHA256 69f1501b5c7bbf33f3201f3c970fae64b6154385b407c3b3ffa7b58f860ad15d
MD5 9e979e866f4ef215b16f8b49fba54f6e
BLAKE2b-256 def84ab0c158375b4ce43fc7b2239b05d44c39d93a1a38499e11cc91b0f35d58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ltr559-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for ltr559-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 622f722ce080653f47b3d43423a0b14df185832e6b2387dbef1ed5b57683fa10
MD5 db9681c62256d910586fcce5fd2db97c
BLAKE2b-256 2854faf1a5c01e70a2d185b23c5db26144aadd94f3252da5dd0b3a2779fd9bb2

See more details on using hashes here.

File details

Details for the file ltr559-0.1.0-py2-none-any.whl.

File metadata

  • Download URL: ltr559-0.1.0-py2-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for ltr559-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 9f92b91c63fd59ce3e5afa2122b4da5f56d45d534955ce45fca227c0dcea6c6e
MD5 46d5854d21b0ea1c1d3783258faae139
BLAKE2b-256 cbe36996ba820b7f6f6cd183e4da612002d39e53dd6c3ddcf8526f85847fb12a

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