Shifty
Shifty copied to clipboard
Do not set input pin direction when there's no need for read function
Setting pin number "-1" to INPUT may cause problems on some devices. Therefore, ignore this action when readPin is -1.
After creating issue https://github.com/johnnyb/Shifty/issues/10 I realized that there is already a pull request fixing this problem. From three years ago. Thank you.