-
Notifications
You must be signed in to change notification settings - Fork 25
Constants are possibly incorrect #5
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
Comments
It looks like several of those constants aren't used, which may explain why not all of Table 5 was included. Have you tested these changes? Would you be interested in putting in a PR with the changes you suggest? Thanks! |
Hi @kattni , |
@barbudor Thank you for submitting the PR! I'm going to request a review from our group. |
I think these are wrong:
Based on Table 5 in the IN219 datasheet, they should probably be the following, inserting 0 for all X (don't-cares), and changing 4097 to 4095 in the comment.
Also, for the "BADCRES" bits, you've left off the rest of Table 5, even though it is included for the "SADCRES" bits. The averaging features area available for both. Perhaps all those constants should be refactored to use offsets so they can be shared between BADCRES and SADCRES.
The text was updated successfully, but these errors were encountered: