There are several libraries for programming the GPIO, but I get the impression that the recommended one is libgpiod. My take is that it's the most versatile one. Am I correct?
This is for simple examples of programming a GPIO pin that I'm giving in an introductory book I'm writing, so I want things to be "standard" and "future-proof." At the same time, I want to prepare a reader for moving on to more advanced things, so I don't want to take the simplest route that may be sort of a dead-end. My examples are in C, assembly language, and Python. So far, I haven't figured out how to use assembly language on the RPi 5, which uses the RP1 chip, but I'm working on it.
This is for simple examples of programming a GPIO pin that I'm giving in an introductory book I'm writing, so I want things to be "standard" and "future-proof." At the same time, I want to prepare a reader for moving on to more advanced things, so I don't want to take the simplest route that may be sort of a dead-end. My examples are in C, assembly language, and Python. So far, I haven't figured out how to use assembly language on the RPi 5, which uses the RP1 chip, but I'm working on it.
Statistics: Posted by rplantz — Fri Mar 01, 2024 10:15 pm — Replies 0 — Views 32