Skip to content

Added support for newer SGP30 chips which use a featureset value of 0x0022 #20

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 2 commits into from
Nov 6, 2019

Conversation

chrisbartley
Copy link
Contributor

See issue 19

@@ -51,7 +51,7 @@

# pylint: disable=bad-whitespace
_SGP30_DEFAULT_I2C_ADDR = const(0x58)
_SGP30_FEATURESET = const(0x0020)
_SGP30_FEATURESETS = [const(0x0020), const(0x0022)]
Copy link
Member

Choose a reason for hiding this comment

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

ooh ok thats a way to do it -if so, please remove the const()'s and turn this into a tuple ()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, ok! I’m pretty clearly not a python guy, plus that was code from 5pm on a Friday. :-\ I now understand that tuples are immutable (and apparently faster) and thus a much better choice here. Will do, thanks! :-)

Copy link
Member

Choose a reason for hiding this comment

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

awesome, you're learning :D

@ladyada ladyada merged commit 00f4455 into adafruit:master Nov 6, 2019
@chrisbartley chrisbartley deleted the multiple-featureset-values branch November 7, 2019 16:34
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Nov 13, 2019
Updating https://github.com/adafruit/Adafruit_CircuitPython_DotStar to 1.5.1 from 1.5.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#38 from adafruit/dherrada-patch-1
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#39 from adafruit/revert-36-bitbangio
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#36 from schelmo/bitbangio
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#35 from schelmo/digitalio

Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 3.1.4 from 3.1.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#56 from makermelissa/master
  > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#55 from adafruit/dherrada-patch-1
  > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#39 from kevinjwalters/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_SGP30 to 2.1.0 from 2.0.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_SGP30#20 from Airviz/multiple-featureset-values
  > Merge pull request adafruit/Adafruit_CircuitPython_SGP30#18 from adafruit/dherrada-patch-1

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1325 to 1.1.1 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1325#4 from makermelissa/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_PyBadger to 0.9.2 from 0.9.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#8 from makermelissa/master
  > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#6 from adafruit/dherrada-patch-1
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.

2 participants