Skip to content

Can get values greater than 255 from color_rgb_bytes. #10

@caternuson

Description

@caternuson

Doc string claims the return should be 3-tuple with range 0-255. But it's possible to get values greater than this.

Adafruit CircuitPython 3.0.0 on 2018-07-09; Adafruit CircuitPlayground Express with Crickit libraries with samd21g18 >>> import board, busio >>> import adafruit_tcs34725 >>> i2c = busio.I2C(board.SCL, board.SDA) >>> sensor = adafruit_tcs34725.TCS34725(i2c) >>> sensor.integration_time 2.4 >>> sensor.gain 1 >>> sensor.color_rgb_bytes (18, 25, 9) >>> sensor.integration_time = 50 >>> sensor.integration_time 48.0 >>> sensor.color_rgb_bytes (2, 554, 570) >>> 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions