Skip to main content
PyPI version

Python library for TSL2561

This is python library for working with Adafruit’s TSL2561 luminosity sensor.

Requirements

Installation

Install the latest version using pip:

pip install tsl2561

Example

from tsl2561 import TSL2561


if __name__ == "__main__":
  tsl = TSL2561(debug=True)
  print(tsl.lux())

License

Copyright (c) 2015 Kevin Townsend for Adafruit Industries. All rights reserved.

Copyright (c) 2016-present, Georges Toth All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ‘’AS IS’’ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Release files for tsl2561 3.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tsl2561 3.4.0
File Size Uploaded
tsl2561-3.4.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tsl2561 3.4.0
File Interpreter ABI Platform
tsl2561-3.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / tsl2561-3.4.0.tar.gz

Download URL tsl2561-3.4.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
805f3b6984f1704329f6e6c674ac44f7184b1b51243a04724bdd430856f5218e
BLAKE2b-256 checksum
How to use checksums
0844d617b24f7bd8bb15f529be245f3598aeea6ae44f71f5254c69345c733d82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

Release files / tsl2561-3.4.0-py3-none-any.whl

Download URL tsl2561-3.4.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35475d65bb13842e97dfda10fb11a504de0258984272df21a8d1c9717cddc516
BLAKE2b-256 checksum
How to use checksums
c66d56f17e30c1121c80de7c1fd984680f76395d712561f7bc4c63ea4db00412
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

Release history Release notifications | RSS feed

This release

3.4.0 This release

2 release files

3.3

2 release files

3.2

2 release files

3.1

1 release file

3.0

2 release files

2.2

2 release files

2.1

2 release files

2.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page