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

Cant handel to return more than 2²⁴-1 value #227

Open
sepehr-mnp opened this issue Feb 3, 2022 · 1 comment
Open

Cant handel to return more than 2²⁴-1 value #227

sepehr-mnp opened this issue Feb 3, 2022 · 1 comment

Comments

@sepehr-mnp
Copy link

Hi.
First id like to thank you for putting your time on creating this useful library.
I am using an arduino mega and MPS20N0040D sensor and it works just fine, until the pressure gets up to 16777215 and it just stops and cant get any higher, i assume it is because of limit of 3 bytes return in .read() function, i really need to show more pressure than that but the accuracy is not that much important for me.
Could you please help me?

@bogde
Copy link
Owner

bogde commented Feb 9, 2022

im not sure i understand your question.
if accuracy is not important you could try increasing the value of set_scale by a factor of 10, 100, 1000 ... and then use get_units()

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