Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/tcs34725_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
try:
temp = sensor.temperature
lux = sensor.lux
print('Temperature: {0}K Lux: {1}'.format(temp, lux))
except ZeroDivisionError:
print("No light to measure")
print('Temperature: {0}K Lux: {1}'.format(temp, lux))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pylint complaining about trailing whitespace on line 27 (which is otherwise a blank line).

# Delay for a second and repeat.
time.sleep(1.0)