From e522776aa7487d9a6c5132bbc19ee3e7a879b290 Mon Sep 17 00:00:00 2001 From: silver2row <seth@lafayette-parish.com> Date: Mon, 30 Oct 2023 18:15:17 -0500 Subject: [PATCH] update to make colorful...relay.rst --- boards/capes/relay.rst | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/boards/capes/relay.rst b/boards/capes/relay.rst index c9867c37..18c4a9e3 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> -- GitLab