Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Wiggan opened this issue Aug 16, 2022 · 0 comments
Open

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

Wiggan opened this issue Aug 16, 2022 · 0 comments

Comments

@Wiggan
Copy link

Wiggan commented Aug 16, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant