Skip to content

Update _reset for MCP2221 #8

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 1 commit into from
Aug 27, 2021
Merged

Update _reset for MCP2221 #8

merged 1 commit into from
Aug 27, 2021

Conversation

caternuson
Copy link
Contributor

For #7.

Basically just adding exception type that gets thrown for MCP2221 case.

(blinka) hellokitty@bench:~/repos/Adafruit_CircuitPython_SGP40$ python3
Python 3.8.10 (default, Jun  2 2021, 10:49:15) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
>>> import adafruit_sgp40
>>> sgp = adafruit_sgp40.SGP40(board.I2C())
>>> sgp.raw
2
>>> sgp.raw
24895
>>> sgp.raw
25563
>>> 

@caternuson
Copy link
Contributor Author

@ladyada
Copy link
Member

ladyada commented Aug 27, 2021

yah its a good idea to change the exception (also)!

@caternuson caternuson merged commit 3187395 into adafruit:main Aug 27, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 1, 2021
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