课程: Raspberry Pi Weekly

免费学习该课程!

今天就开通帐号,24,600 门业界名师课程任您挑!

Use libgpiod instead of sysfs

Use libgpiod instead of sysfs

- Sysfs is being deprecated, which is to say, if you've been using /sys/class/gpio with bash, it may stop working with an upcoming update of Raspbian. Instead, you'll start using something called libgpiod. Libgpiod comes with some really useful tools that will make your development easier. So let's take a look at libgpiod and how it improves on sysfs. Hi, I'm Mark Niemann-Ross, and welcome to this week's edition of "Raspberry PI Weekly." Every week, we explore the Raspberry Pi and share useful tips. If your system doesn't already have libgpiod installed, it's easy to get it. Go to a terminal window, type in, sudo atp-get update. Your system may take longer than mine. And then, type in, sudo apt-get install gpiod libgpiod-dev and libgpiod-doc. And again, your system may take longer than mine. Now, you have a new selection of tools, gpiodetect, gpiofind, gpioget, gpioinfo, gpiomon, and gpioset. All of them work from a…

内容