Skip to content

Commit 135f8d7

Browse files
authored
Update tsl2561-mqtt.py
1 parent e16b661 commit 135f8d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tsl2561-mqtt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
sensor = adafruit_tsl2561.TSL2561(i2c)
2525
# Set high gain mode.
2626
# 0 is low gain 1 is high gain
27-
sensor.gain = 1
27+
sensor.gain = 0
2828
# Set integration time.
2929
# A value 0 is 13.7ms, 1 is 101ms, 2 is 402ms, and 3 is manual mode.
30-
sensor.integration_time = 2
30+
sensor.integration_time = 0
3131

3232
#MQTT Connection
3333
client=mqtt.Client(clientid)

0 commit comments

Comments
 (0)