How should I use the gpio pins?

Friends, can you help me on how to use gpio pins in Python in dietpi?

Do you have already some idea in mind what you wanna do or you just want some general info?

Yeah, I know. In the first step, I need to control some relay modules; after that, I’ll possibly add a rotary encoder and maybe a push button.

Well, I was able to get the relay module working with this library: GitHub - vsergeev/python-periphery: A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.