diff --git a/boards/capes/relay.rst b/boards/capes/relay.rst index c9867c37427e7672bf4d01b19272d534d4fe46ce..18c4a9e320e8ea97347e49f2e4565aae7272f97d 100644 --- a/boards/capes/relay.rst +++ b/boards/capes/relay.rst @@ -161,13 +161,9 @@ One thing to note: `sudo apt install cmake` .. code-block:: - /* - - Simple gpiod example of toggling a LED connected to a gpio line from - the BeagleBone Black Wireless and Relay Cape. - Exits with or without CTRL-C. - - */ + // Simple gpiod example of toggling a LED connected to a gpio line from + // the BeagleBone Black Wireless and Relay Cape. + // Exits with or without CTRL-C. // This source can be found here: https://github.com/tranter/blogs/blob/master/gpio/part9/example.c // It has been changed by me, Seth, to handle the RelayCape and BBBW Linux based SiP SBC. @@ -180,6 +176,7 @@ One thing to note: `sudo apt install cmake` // We will also need to locate which chipname is being utilized. For instance: gpiochip0 - 32 lines: // #include <linux/gpio.h> + #include <gpiod.h> #include <stdio.h> #include <unistd.h>