EdgePi-Cloud / edgepi-python-sdk

Python SDK to control EdgePi, an industrial PC/PLC/IoT device powered by Raspberry Pi CM4
MIT License
5 stars 3 forks source link

Make PWM thread safe #405

Open josiah-tesfu opened 9 months ago

josiah-tesfu commented 9 months ago

Currently, PWM is not thread safe. An issue could arise when multiple processes access the same PWM pin at once. This is a non-standard use case, so it likely wasn't considered much when the PWM module was implemented.

This issue is similar to previous thread-safety fixes in I2C and SPI.