Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:techref:hardware:port.gpio [2022/01/31 18:40] – [Pin Multiplexing] fix code danitool | docs:techref:hardware:port.gpio [2023/07/20 01:47] (current) – Add info box about gpiod-tools, gpio sysfs has been marked obsolete and won't work correctly djfe | ||
|---|---|---|---|
| Line 56: | Line 56: | ||
| ===== Software ===== | ===== Software ===== | ||
| + | <WRAP round info 100%> | ||
| + | **The GPIO SYSFS interface has been marked as obsolete in 2015. I couldn' | ||
| + | |||
| + | The new interface is the linux GPIO character device. One way to access it is [[https:// | ||
| + | |||
| + | You can install it with the [[: | ||
| + | |||
| + | <code bash> | ||
| + | opkg install gpiod-tools</ | ||
| + | |||
| + | A good article on how to use the new CLI and why we should move on: [[https:// | ||
| + | |||
| + | The biggest differences are: | ||
| + | * The new interface isn't stateless like the old one. Processes are able to take exclusive control over a gpio line now | ||
| + | * There is a character device / | ||
| + | * TODO | ||
| + | As I said: This page needs an overhaul. This info box is just to prevent people from wasting their time on a deprecated ABI. | ||
| + | </ | ||
| + | |||
| In linux GPIOs can be accessed through GPIO SYSFS interface: **/ | In linux GPIOs can be accessed through GPIO SYSFS interface: **/ | ||
| Line 329: | Line 348: | ||
| - Compare the changed GPIO value which corresponding to the button held | - Compare the changed GPIO value which corresponding to the button held | ||
| ===== Links ===== | ===== Links ===== | ||
| - | * [[http:// | + | * [[https:// |
| * [[http:// | * [[http:// | ||