GreenPonik_TSL2561.py Library for Raspberry pi
This is the sample code for read light with TSL2561 sensor.
Table of Contents
- GreenPonik_TSL2561.py Library for Raspberry pi
- Table of Contents
- Installation
- Methods
- Examples
- Credits
Installation
> git clone https://github.com/GreenPonik/GreenPonik_TSL2561.git
cd GreenPonik_TSL2561
pip3 install -r requirements.txt
or
> pip3 install greenponik-tsl2561
from GreenPonik_TSL2561 import GreenPonik_TSL2561
Methods
"""
Get light data
"""
def read_tsl2561():
Example
import time
from GreenPonik_TSL2561 import GreenPonik_TSL2561
if __name__ == "__main__":
tsl = GreenPonik_TSL2561()
while True:
data = tsl.read_tsl2561()
print(data)
time.sleep(1)
Credits
Write by Mickael Lehoux, from GreenPonik, 2019
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
greenponik-tsl2561-0.0.3.tar.gz
(162.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file greenponik-tsl2561-0.0.3.tar.gz.
File metadata
- Download URL: greenponik-tsl2561-0.0.3.tar.gz
- Upload date:
- Size: 162.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69f0d59c54a4c7396dc18901752027dbcd27ef44fc202ca53296ad5732170911
|
|
| MD5 |
f5d77f76f866647f29b0904e72d3a94a
|
|
| BLAKE2b-256 |
a34c6f52367382d79c85211013237d663275228a77b6b59cb5ccabf2dd7cff7d
|
File details
Details for the file greenponik_tsl2561-0.0.3-py3-none-any.whl.
File metadata
- Download URL: greenponik_tsl2561-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8edd27e9713f207db2a16e6b333bee9b382aa4394250f331b7682c1a83af213
|
|
| MD5 |
2c16aa807bf46d4c36e10546b3fb314d
|
|
| BLAKE2b-256 |
c8a6e4dab2657b9faa20e45f792c29200a713fd28f76c8d876d1ea5a8a96a9cd
|