Table of Contents

GPIO V2 demo

This is a demo of the Linux kernel GPIO V2 API.

Install

hg clone https://hg.kewl.org/pub/gpio
cd gpio
make

Run

Two methods exist, set and get.

The set operation will output 0 or 1 on a pin.

the get operation will configure an input for rising edge detection and poll the pin.

NB on at least one RPi kernel edge detection does not work.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies