Overview of gpiocdev
mastergpiocdev is a native Go library designed for accessing GPIO pins (lines) on Linux platforms using the GPIO character device. It provides functionality equivalent to the C libgpiod library, allowing developers to control GPIO hardware directly from Go applications.
Key features include:
- Direction control (input/output)
- Reading and writing line values (active/inactive)
- Configuring active high/low states
- Setting output modes (push-pull, open-drain, open-source)
- Configuring pull-up/pull-down resistors (Linux 5.5+)
- Edge detection and watches (rising, falling, or both)
- Debouncing input lines (Linux 5.10+)
- Support for chip and line labels
- Thread-safety: All library functions are safe to call from different goroutines.