Skip to content

Commit

Permalink
Update tsl2561.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alaub81 authored Feb 10, 2021
1 parent eb76d29 commit e16b661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsl2561.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

# Set high gain mode.
# 0 is low gain 1 is high gain
sensor.gain = 1
sensor.gain = 0
# Set integration time.
# A value 0 is 13.7ms, 1 is 101ms, 2 is 402ms, and 3 is manual mode.
sensor.integration_time = 2
sensor.integration_time = 0

print('Lux: {}'.format(sensor.lux))
print('Broadband: {}'.format(sensor.broadband))
Expand Down

0 comments on commit e16b661

Please sign in to comment.