-
Notifications
You must be signed in to change notification settings - Fork 18
Add per channel property style access #9
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
Conversation
NOTE I also added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this. Two small comments
adafruit_mpr121.py
Outdated
self.reset() | ||
|
||
def __getitem__(self, key): | ||
if key < 0 or key > 11: | ||
raise ValueError('Pin must be a value 0-11.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use IndexError please. It's what [] usually responds with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. that was copy pasta :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok great! Thanks!
Updating https://github.com/adafruit/Adafruit_CircuitPython_MPR121 to 1.2.0 from 1.1.1: > Merge pull request adafruit/Adafruit_CircuitPython_MPR121#9 from caternuson/iss1 > ignore the board module imports in .pylintrc
A nominal "fix" for #1. Adds per channel property style access to
value
andraw_value
for each channel: