Depending on the application (if any latency is acceptable),
you could take the mean of the last few readings and use that.
Heart rate monitors typically do it. Things like speedometers, not such a...
Here you will find snippets of working code that will help save you time. Please help add to our collection of examples by contributing code that you have written.
Re: Not or Invert
Or decrement it, the same :D
sayzer Yesterday, 19:27or the grandpa's way :
Variable = NOT DigitalInputPin