Hello KenUnix,

Seth here. I will need to type one up. I found a book a while back on 
setting up GPIO pins in C/C++ (more towards C than C++). Anyway...

I think I can assist in this matter. 

...

I think that Adafruit_BBIO and some other libraries might go extinct soon. 
I am not familiar enough w/ Python to write my own library just yet.

I am not familiar enough w/ C/C++ to type up an entire library yet either, 
e.g. mostly due to headers in C/C++ and import OS and others in Python.

Seth

P.S. Anyway, the book is Exploring BeagleBone by Molloy. I will get on this 
task soon. Please bear w/ me on this endeavor. 

On Monday, April 6, 2020 at 7:33:41 PM UTC-5, KenUnix wrote:
>
>
> Could someone display an example of operating and releasing a relay in 'c'?
> And if possible getting the current state of the relay. Operated or 
> released
> .
> I have the relay cape from Mouser 958-RLYCPE-BBBCAPE GHI installed.
>
> Relay Cape. From what I read.
> Relay 1 gpio20
> Relay 2 gpio 7
> Relay 3 gpio112
> Relay 4 gpio115
>
> If possible code not requiring libraries or header files not normally on 
> the BBB image (RCN 10.3 Debian IoT)
> unless I can download any required files from a URL.
>
> Thanks
>
> This is what I found so far (thanks zmatt)
> relay 1  -  P9.41  -  gpio 0.20 (gpio20)
> relay 2  -  P9.42  -  gpio 0.07 (gpio7)
> relay 3  -  P9.30  -  gpio 3.16 (gpio112)
> relay 4  -  P9.27  -  gpio 3.19 (gpio115)
>
>
>
>
On Monday, April 6, 2020 at 7:33:41 PM UTC-5, KenUnix wrote:
>
>
> Could someone display an example of operating and releasing a relay in 'c'?
> And if possible getting the current state of the relay. Operated or 
> released
> .
> I have the relay cape from Mouser 958-RLYCPE-BBBCAPE GHI installed.
>
> Relay Cape. From what I read.
> Relay 1 gpio20
> Relay 2 gpio 7
> Relay 3 gpio112
> Relay 4 gpio115
>
> If possible code not requiring libraries or header files not normally on 
> the BBB image (RCN 10.3 Debian IoT)
> unless I can download any required files from a URL.
>
> Thanks
>
> This is what I found so far (thanks zmatt)
> relay 1  -  P9.41  -  gpio 0.20 (gpio20)
> relay 2  -  P9.42  -  gpio 0.07 (gpio7)
> relay 3  -  P9.30  -  gpio 3.16 (gpio112)
> relay 4  -  P9.27  -  gpio 3.19 (gpio115)
>
>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/4f08bce6-61dc-4d9b-8471-b2fde68afcaf%40googlegroups.com.

Reply via email to