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.
**Body:** Hello, I've encountered an import error while trying to use the `periphery` library for controlling LEDs in a Python script. Below is the error message I received: ```plaintext Traceback...
As a user I assume that once set duty cycle to 50% (value 0.5) is kept when frequency is changed. Currently it is not possible to raise frequency over twice...
First commit is important for performance because it avoids useless data copies when the caller provides a mutable buffer. Locally, I have an incomplete micropython-compat layer that I'd like to...
For resource constrained devices, who often run OpenWrt which has MicroPython in its repo, this package would make a lot of sense since for example I2C and SPI are used...
Can you consider to implement generic uio in your python periphery? As i see your MMIO implementation can serve the reg mapping for a /dev/uioX, only the IRQ waiting which...
I have a very strange use case for this library such that I need two instances accessing the same PWM at the same time. I am aware this is not...
Feature suggestion
Hey, I am having an issues using the PWM code in Visual Studio Code (Python), I am using an Asus Tinker Edge R. When I run the code, I can...
Hi, I am using SPI module in the library to handle SPI transactions from Raspberry PI CM4 to an onboard SPI device. The maximum speed is set to 5MHz on...
I need to keep the SPI chip select asserted while transferring multiple messages (and doing some processing in between). The necessary low-level interface already exists ([_CSpiIocTransfer.cs_change](https://github.com/vsergeev/python-periphery/blob/master/periphery/spi.py#L27)). Can this be made...