python-periphery
python-periphery copied to clipboard
A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux.
Possible to support an/several GPIO for SPI Chip Selection?
Why was the "preserve" option removed for GPIO direction? Seems to have happened on this commit: https://github.com/vsergeev/python-periphery/commit/49664e032649c1b8f3af0bf91f4bea4ae4e08f9b
Please consider adding support for some led triggers like gpio, timer. This would be very useful, because for example it will provide a way to blink led within system kernel,...
As project getting close to hardware, there are multiple iio builtin drivers that python-periphery could support
```python >>> input = pp.GPIO("/dev/gpiochip3", 10, "in", inverted=True, drive="default") >>> input.edge="falling" Traceback (most recent call last): File "/root/gpio_controller/.venv/lib/python3.10/site-packages/periphery/gpio_cdev2.py", line 269, in _reopen fcntl.ioctl(self._chip_fd, Cdev2GPIO._GPIO_V2_GET_LINE_IOCTL, line_request) OSError: [Errno 22] Invalid argument...