-
-
Notifications
You must be signed in to change notification settings - Fork 262
TSL2591
Matthew Hilton edited this page Feb 9, 2021
·
3 revisions
TSL 2561 support is the default using address 0x29 as shown below. To switch to TSL2591 change the setting LIGHTSENSOR_TYPE='TSL2691'
# LightSensor
LIGHTSENSOR_TYPE='TSL2561' # Allowed Values TSL2561 TSL2591
# the address of TSL2561/TSL2591 can be
# 0x29, 0x39 or 0x49
TSL_I2C_BUS=1
TSL_ADDR=0x29
Instead of a TSL2561 if you accidentally get a TSL2591 you can use the following instead. Follow all of the same instructions under brightness sensor and then in dev mode:
- Install pip3 if you don't already have it with
sudo apt-get install python3-pip
-
sudo pip3 install python-tsl2591 smbus
Sudo is important here, otherwise the module will disappear after a reboot cp /opt/crankshaft/service_lightsensor.py /opt/crankshaft/service_lightsensor.py.old
- insert the file from the repository here at /opt/crankshaft/service_lightsensor.py
- reboot to regular mode
- Profit
- Home
- Roadmap
- General Changes / Changelog
- Installing / Updating
- When Issue occur
- Hardware
- Configuration
- Features
- Home
- Get started
- Hardware
- Software and Settings
- For Advanced Users
- Et Cetera