python3-gpiod icon indicating copy to clipboard operation
python3-gpiod copied to clipboard

QUESTION: Can i use this as a substitute for RPI.GPIO?

Open hughsheehy opened this issue 2 years ago • 1 comments

I'm working to adapt some code from Pis to Rock 4s and the code comes from the Raspberry Pi world. Is this a good substitute for RPI.GPIO??

hughsheehy avatar Jan 06 '23 12:01 hughsheehy

I think the best is https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/ python binding.

This repo is just pure python package for libgpiod.

If your board in https://github.com/adafruit/Adafruit_Blinka/blob/501da1299e4b60c8027f550b63c72d06a372b2fa/src/board.py#L232-L251

Choosing Blinka is not bad.

hhk7734 avatar Feb 16 '23 03:02 hhk7734