Skip to main content
2 votes
Accepted

Reserving/locking pins between processes

There is no way of reserving GPIO Pi wide. A lot of the existing Pi GPIO libraries talk directly to the hardware and the last library to configure a GPIO wins. The kernel supports claiming GPIO but ...
joan's user avatar
  • 71.2k
1 vote
Accepted

Working code example for a button using GPIOd and Python

I have some code using gpiod. See https://raspberrypi.stackexchange.com/a/145544/8697 gpiod is poorly documented so it is not easy to use but my test worked but not fully tested on Pi5
Milliways's user avatar
  • 60.5k
1 vote

RPi 5 PWM precise frequency output

As far as I am aware gpiozero has no support for hardware timed PWM at the moment. You will have to use software timed PWM which is unlikely to be suitable. Note that the Pi5 has new hardware ...
joan's user avatar
  • 71.2k
1 vote
Accepted

How can I generate a hardware PWM on Raspberry Pi 4 using Python?

There are several hardware PWM implementations (although it is doubtful that they will work on a Pi5). All that I am aware of directly manipulate the system registers. There is a kernel overlay for ...
Milliways's user avatar
  • 60.5k

Only top scored, non community-wiki answers of a minimum length are eligible