-
Notifications
You must be signed in to change notification settings - Fork 8
Add threshold and sensitivity control #7
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
adafruit_cap1188/cap1188.py
Outdated
@@ -63,16 +63,21 @@ | |||
const(0x15), | |||
const(0x16), | |||
const(0x17)) | |||
CAP1188_SENSITIVTY = const(0x1F) |
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.
Shouldn't these all start with _
to save memory? I realize you didn't change it here but its probably worth doing. Variable names take a lot of memory.
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.
Yep. Just not being good at being consistent. Names changed.
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.
good find!
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.
Looks good, thanks for adding this and fixing it up!
Updating https://github.com/adafruit/Adafruit_CircuitPython_CAP1188 to 1.1.0 from 1.0.3: > Merge pull request adafruit/Adafruit_CircuitPython_CAP1188#7 from caternuson/iss6
Adds new features for #6. Threshold settings can be done per channel or globally for all channels. Also adds
sensitivity
, which is a global only setting.