Pioreactor / rpi_hardware_pwm

Access the hardware PWM of a Raspberry Pi
Other
65 stars 15 forks source link

Something similar to Mock.GPIO would have been nice #6

Open Wiggan opened 2 years ago

Wiggan commented 2 years ago

In my code I have this for the regular gpios: try: import RPi.GPIO as GPIO except: import Mock.GPIO as GPIO # If not running on rpi, mock gpio

Something similar for the hardware pwm would have been great!