Skip to content

DN40 lux and CT and other fixes #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 17, 2018
Merged

Conversation

caternuson
Copy link
Contributor

  • replaced _temperature_and_lux with _temperature_and_lux_dn40
  • added lux and color_temperature properties
  • removed color_rgb_bytes
  • removed color
  • fixed endianess in 16 bit read/write funcs

@caternuson
Copy link
Contributor Author

I put color back in along with the color_rgb_bytes property it uses.

Adafruit CircuitPython 3.1.1 on 2018-11-02; Adafruit ItsyBitsy M4 Express with samd51g19
>>> import board, busio, adafruit_tcs34725
>>> i2c = busio.I2C(board.SCL, board.SDA)
>>> tcs = adafruit_tcs34725.TCS34725(i2c)
>>> tcs.color_rgb_bytes
(39, 14, 9)
>>> tcs.color
2626056
>>> 

Copy link

@microbuilder microbuilder left a comment

Choose a reason for hiding this comment

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

lgtm

@tannewt tannewt merged commit 3ae895c into adafruit:master Dec 17, 2018
tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants