pi-gpio icon indicating copy to clipboard operation
pi-gpio copied to clipboard

setDirection no longer writes if not necessary.

Open dvdvorle opened this issue 9 years ago • 0 comments

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.

dvdvorle avatar Mar 06 '15 14:03 dvdvorle