-
Notifications
You must be signed in to change notification settings - Fork 539
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
scale.get_max #21
Comments
if i understand your requirements correctly, you just need to store and print the max value in your code. something like this: ...
value = 0;
temp = scale.get_value();
if (temp > value)
{
value = temp;
...
lcd.print(value);
}
... |
Your understanding is correct. I've tried if and for statements and even while loops. I integrated your suggestion into my code but the value returned is not in units and varies from reset to reset with no change once weight/force is applied to the load cell. Do you have any other suggestions? Thanks in advance. |
you can use get_units instead of get_value. the max value you're storing in |
Very handy library. It works well with lcd.print and I've tried modifying my sketch to achieve my desired goal, but I'm not a code guy so what I'm asking may not be possible. Would it be difficult to add this to your library? It would be nice to apply a force to the load cell and watch the numbers climb, stopping at the highest force applied. This would be useful for a load force tester.
Many Thanks,
Chuck
The text was updated successfully, but these errors were encountered: