Or decrement it, the same :D or the grandpa's way : Variable = NOT DigitalInputPin
Thank you :-)
The @ INC _yourvariable may be even smaller in regard to code size. Evil, Art! Ioannis
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...
Yeah, increment it. If the bit was zero it will increment to one. If the bit was one, it will overflow to zero. They will both probably end up the same in assembler though.
Not at all.. Just couldn't get it Old Age Thank you
Andy, Are you looking for even an easier way?
so :- Not_PB2 = ~DigitalInputPin That easy ? Thank You
Variable = ~DigitalInputPin
Very Very Quick question :- I have a digital input..... How do I invert it in software , Brain freeze :-( BR Andy Thank you all for reading
Re: Not or Invert
Or decrement it, the same :D
sayzer Today, 19:27or the grandpa's way :
Variable = NOT DigitalInputPin