Closed elmatou closed 9 years ago
it says in doc (http://www.rubydoc.info/github/jwhitehorn/pi_piper/PiPiper%2FPin%3Aread) that you should first call "read" to have actual state for "off?", value etc
would be good to update read me with some examples on that subject though
EDIT : I understood, this behaviour is by design, but it do not seem very "natural" to me.
even if
r
is realy on a high level.use the cached value of the pin (why a cached value ?!) which is not updated after #on or #off
is a way to fix the issue