Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions adafruit_tcs34725.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_TCS34725.git"

# Register and command constants:
# pylint: disable=bad-whitespace
_COMMAND_BIT = const(0x80)
_REGISTER_ENABLE = const(0x00)
_REGISTER_ATIME = const(0x01)
Expand All @@ -80,7 +79,6 @@
_CYCLES = (0, 1, 2, 3, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60)
_INTEGRATION_TIME_THRESHOLD_LOW = 2.4
_INTEGRATION_TIME_THRESHOLD_HIGH = 614.4
# pylint: enable=bad-whitespace


class TCS34725:
Expand Down Expand Up @@ -121,7 +119,6 @@ def color_rgb_bytes(self):
# Avoid divide by zero errors ... if clear = 0 return black
if clear == 0:
return (0, 0, 0)
# pylint: disable=bad-whitespace
red = int(pow((int((r / clear) * 256) / 255), 2.5) * 255)
green = int(pow((int((g / clear) * 256) / 255), 2.5) * 255)
blue = int(pow((int((b / clear) * 256) / 255), 2.5) * 255)
Expand Down Expand Up @@ -288,7 +285,7 @@ def _temperature_and_lux_dn40(self):
Also computes lux. Returns tuple with both values or tuple of Nones
if computation can not be done.
"""
# pylint: disable=bad-whitespace, invalid-name, too-many-locals
# pylint: disable=invalid-name, too-many-locals

# Initial input values
ATIME = self._read_u8(_REGISTER_ATIME)
Expand Down