pi-gpio
pi-gpio copied to clipboard
setDirection no longer writes if not necessary.
Writing "out" to the pin-direction can have the unwanted side effect of changing the pin-value automatically to 0. Checking the pin-direction beforehand prevents unnecessary writes.