Closed ghost closed 5 years ago
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 , I've fixed the values to match the datasheet(as identified by user above) and added the missing ones. I also added new properties to access the config register and its fields. I would like to submit a PR for the above. Best regards
@barbudor Thank you for submitting the PR! I'm going to request a review from our group.
Fixed by #9. Thanks again @barbudor!
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.