vsergeev / python-periphery

A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux.
MIT License
519 stars 139 forks source link

gpio: prevent setting the direction if it is already set correctly #55

Closed fpracht closed 1 year ago

fpracht commented 2 years ago

Resolves #54

vsergeev commented 1 year ago

This won't work as the SysfsGPIO doesn't have a _direction member.