Skip to content
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

Sensitivity mapping for 4x is wrong #18

Closed
beeka opened this issue May 5, 2020 · 3 comments
Closed

Sensitivity mapping for 4x is wrong #18

beeka opened this issue May 5, 2020 · 3 comments
Assignees

Comments

@beeka
Copy link

beeka commented May 5, 2020

The delta_sense bit mapping dictionary looks like this:
SENSITIVITY = {128: 0b000, 64:0b001, 32:0b010, 16:0b011, 8:0b100, 4:0b100, 2:0b110, 1:0b111}

Note that the values for 8 and 4 are the same. The CAP1188 datasheet says that 4 should be 0b101.

@Gadgetoid
Copy link
Member

Ooof! I'll get this corrected when I can.

@Gadgetoid Gadgetoid self-assigned this May 5, 2020
@beeka
Copy link
Author

beeka commented May 6, 2020

I found this while adding get/set sensitivity functions. I've added my patches, in case they are useful. add_sensitivity_fns.txt
fix_mapping.txt

@Gadgetoid
Copy link
Member

Added these as part of #23 - thank you!

Hey I'm only- but not quite- four years late!

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

No branches or pull requests

2 participants