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

keeping it from updating all the time. #6

Closed
NikolajRFA opened this issue Dec 16, 2017 · 7 comments
Closed

keeping it from updating all the time. #6

NikolajRFA opened this issue Dec 16, 2017 · 7 comments

Comments

@NikolajRFA
Copy link

when i am useing the libary it outputs data all the time, but i only want it to output when i have changed the value of the potentiometer

if it is even possible, how would this be done?

@Frickelpiet
Copy link

You could compare the current value with the old value.

@NikolajRFA
Copy link
Author

how would this be done?

@NikolajRFA
Copy link
Author

i tried something like
if (val != lastVal)
but it didnt work

@NikolajRFA
Copy link
Author

nevermind i fixed it

@ilikecheese
Copy link

ilikecheese commented Dec 16, 2017 via email

@NikolajRFA
Copy link
Author

im just so bad at coding, that i put a semicolon behind the before mentioned if statement, and it canceled itself.... smh.

love the library BTW.

@ilikecheese
Copy link

ilikecheese commented Dec 16, 2017 via email

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

3 participants