• Set the pin mode properly in the first place and use pin.read()

    I suppose it all comes down to documentation so I'll make a PR and we're good ;)

About

Avatar for Rollo @Rollo started