Skip to main content

CircuitPython library for TSL2561 Light Sensor.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

CircuitPython driver for TSL2561 Light Sensor.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-tsl2561

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-tsl2561

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-tsl2561

Usage Example

>>> import board
>>> import busio
>>> i2c = busio.I2C(board.SCL, board.SDA)
>>> import adafruit_tsl2561
>>> tsl = adafruit_tsl2561.TSL2561(i2c)
>>> tsl.lux
3294.37

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

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

adafruit_circuitpython_tsl2561-3.3.23.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file adafruit_circuitpython_tsl2561-3.3.23.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_tsl2561-3.3.23.tar.gz
Algorithm Hash digest
SHA256 1f3f7d62069c45d73778b4e076c8f9905402b46489df6c6c4dd91c77ba06bac5
MD5 4f426a64620c048ef6280a22f9c01d54
BLAKE2b-256 a4a8dcb5ad99655f8e8886b1da1bd6bcee16d95394dcc50e08b3941b8999b4a5

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_tsl2561-3.3.23-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_tsl2561-3.3.23-py3-none-any.whl
Algorithm Hash digest
SHA256 6ff9527f8c12bff1f56475822cc3a28ec30d49079812c34b6581ba257b8b857d
MD5 547456f719430f0aefaecfadbb3af179
BLAKE2b-256 78eda01d5281f0c9b78acb9f44cce31e379d268fd279d5b2cce4b0423f8b7845

See more details on using hashes here.

Supported by

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