Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 03393111 authored by silver2row's avatar silver2row
Browse files

update to relay.rst

parent d17ec58a
Branches
Tags
1 merge request!99Erasing the older Branch and Starting Anew...
......@@ -63,6 +63,7 @@ by changing the number after "relay" in /sys/class/leds/relay.
Code to Get Started
*******************
<<<<<<< HEAD
<<<<<<< HEAD
Currently, using C files, libgpiod-dev in .c files, and
python3 files with the Relay Cape work well!
......@@ -76,6 +77,14 @@ python3 files with the Relay Cape work well!
* For instance, a kernel that I found to work is kernel: `5.10.168-ti-r77`
* Another idea, an image I found that works is `BeagleBoard.org Debian Bookworm IoT Image 2023-10-07`
>>>>>>> 2ac757d (update to relay.rst)
=======
Currently, using C/C++ files, libgpiod-dev/gpiod in .c files, and
python3 files with the Relay Cape work well!
* For instance, a kernel that I found to work is kernel: `5.10.168-ti-r77`
* Another idea, an image I found that works is `BeagleBoard.org Debian Bookworm IoT Image 2023-10-07`
>>>>>>> 2ac757d (update to relay.rst)
......@@ -87,6 +96,7 @@ from beagleboard.org.
C Source with File Descriptors
******************************
<<<<<<< HEAD
<<<<<<< HEAD
You can name this file Bright.c and use gcc to handle compiling the source into a binary like so:
......@@ -94,6 +104,11 @@ You can name this file Bright.c and use gcc to handle compiling the source into
=======
You can name this file Relay.c and use gcc to handle compiling the source into a binary like so:
`gcc Relay.c -o Relay`
>>>>>>> 2ac757d (update to relay.rst)
=======
You can name this file Relay.c and use gcc to handle compiling the source into a binary like so:
`gcc Relay.c -o Relay`
>>>>>>> 2ac757d (update to relay.rst)
......@@ -101,9 +116,14 @@ You can name this file Relay.c and use gcc to handle compiling the source into a
/*
<<<<<<< HEAD
<<<<<<< HEAD
This is an example of programming GPIO from C on a BeagleBone Black or
other am335x board with the Relay Cape.
=======
This is an example of programming C using the specification interface on
a BeagleBone Black or other am335x board with the Relay Cape.
>>>>>>> 2ac757d (update to relay.rst)
=======
This is an example of programming C using the specification interface on
a BeagleBone Black or other am335x board with the Relay Cape.
......@@ -115,9 +135,13 @@ You can name this file Relay.c and use gcc to handle compiling the source into a
Jeff Tranter <jtranter@ics.com>
<<<<<<< HEAD
<<<<<<< HEAD
and...Seth. I changed the source a bit to fit the BeagleBone Black and Relay Cape while using the specification
made by the beagleboard.org people from their organization.
=======
and...Seth. I changed the source a bit to fit the BeagleBone Black and Relay Cape while using the new specification.
>>>>>>> 2ac757d (update to relay.rst)
=======
and...Seth. I changed the source a bit to fit the BeagleBone Black and Relay Cape while using the new specification.
>>>>>>> 2ac757d (update to relay.rst)
......@@ -174,6 +198,7 @@ You can name this file Relay.c and use gcc to handle compiling the source into a
C Source with gpiod.h and File Descriptors
***********************************************
<<<<<<< HEAD
<<<<<<< HEAD
Also...if you are looking to dive into the new interface, libgpiod-dev/gpiod, here is another form of
source that can toggle the same GPIO listed from the file descriptor.
......@@ -181,6 +206,10 @@ source that can toggle the same GPIO listed from the file descriptor.
Also...if you are looking to dive into the new interface, libgpiod-dev/gpiod.h, here is another form of
source that can toggle the same "GPIO" listed from the file descriptor.
>>>>>>> 2ac757d (update to relay.rst)
=======
Also...if you are looking to dive into the new interface, libgpiod-dev/gpiod.h, here is another form of
source that can toggle the same "GPIO" listed from the file descriptor.
>>>>>>> 2ac757d (update to relay.rst)
One thing to note: `sudo apt install cmake`
......@@ -197,6 +226,7 @@ One thing to note: `sudo apt install cmake`
// Exits with or without CTRL-C.
// This source can be found here: https://github.com/tranter/blogs/blob/master/gpio/part9/example.c
<<<<<<< HEAD
<<<<<<< HEAD
// It has been changed by me, Seth, to handle the Relay Cape and the BBB Linux based SoC SBC.
......@@ -206,6 +236,11 @@ One thing to note: `sudo apt install cmake`
// kernel: 5.10.168-ti-r77
>>>>>>> 2ac757d (update to relay.rst)
=======
// It has been changed by me, Seth, to handle the Relay Cape and the BBB Linux based SiP SBC.
// kernel: 5.10.168-ti-r77
>>>>>>> 2ac757d (update to relay.rst)
// image : BeagleBoard.org Debian Bookworm IoT Image 2023-10-07
// type gpioinfo and look for this line: line 20: "P9_41B" "relay1" output active-high [used]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment