davecheney / gpio

GPIO for Go
BSD 2-Clause "Simplified" License
228 stars 52 forks source link

Don't change gpio direction if already correct #22

Closed cbrake closed 8 years ago

cbrake commented 8 years ago

Writing the direction has the effect of resetting the gpio which may not be desirable in some cases. One example is when an application restarts, all gpio are set correctly and you don't want them to glitch during gpio initialization.