<div dir="auto"><div>1.6 is way out of date... I'm working with 2.2, because that is the version of binary load of gpiod that is in the Yocto Linux distribution that is available for the SOM we are using -- and we can't (for liability reasons) build our own Yocto distro.</div><div><br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>--</div><div>Scott G. Hall<br>Raleigh, NC, USA<br><a href="mailto:scottghall1@gmail.com" target="_blank">scottghall1@gmail.com</a></div><i style="color:rgb(34,34,34)">\u201d</i><i style="color:rgb(34,34,34)">Failure is the opportunity to begin again more intelligently.\u201d -- Henry Ford</i></div></div></div></div></div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, May 9, 2026, 10:28\u202fAM Carl Nobile <<a href="mailto:carl.nobile@gmail.com">carl.nobile@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I don't have working examples, but I found a ton of resources. Try looking at these.</div><div><br></div><a href="https://libgpiod.readthedocs.io/" target="_blank" rel="noreferrer">https://libgpiod.readthedocs.io/</a><div><a href="http://phwl.org/assets/images/2021/02/libgpiod-ref.pdf" target="_blank" rel="noreferrer">http://phwl.org/assets/images/2021/02/libgpiod-ref.pdf</a><br><br><span style="font-family:monospace"><span style="color:rgb(0,0,0)">$ apt search <span aria-invalid="spelling" style="border-style:none;background:none">libgpiod</span></span><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">Sorting... Done
</span><br>Full Text Search... Done
<br><span style="color:rgb(24,178,24)">gpiod</span><span style="color:rgb(0,0,0)">/noble 1.6.3-1.1build1 amd64
</span><br> Tools for interacting with Linux GPIO character device - binary<br><span style="color:rgb(24,178,24)">libgpiod-dev</span><span style="color:rgb(0,0,0)">/noble 1.6.3-1.1build1 amd64
</span><br> C library for interacting with Linux GPIO device - static libraries and headers<br><span style="color:rgb(24,178,24)">libgpiod-doc</span><span style="color:rgb(0,0,0)">/noble,noble 1.6.3-1.1build1 all
</span><br> C library for interacting with Linux GPIO device - library documentation<br><span style="color:rgb(24,178,24)">libgpiod2t64</span><span style="color:rgb(0,0,0)">/noble 1.6.3-1.1build1 amd64
</span><br> C library for interacting with Linux GPIO device - shared libraries<br><span style="color:rgb(24,178,24)">python3-libgpiod</span><span style="color:rgb(0,0,0)">/noble 1.6.3-1.1build1 amd64
</span><br> Python bindings for libgpiod (Python 3)<br></span></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Notice the Python binding; this may help to get you started.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">~Carl</font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 9, 2026 at 1:13\u202fAM Scott Hall via TriEmbed <<a href="mailto:triembed@triembed.org" target="_blank" rel="noreferrer">triembed@triembed.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>I am stuck and hope someone in TriEmbed or EMP might know ..</div><div dir="auto"><br></div><div dir="auto">I need to program a Linux process using the libgpiod library's C++ bindings. Trouble is all the examples in the source repo don't compile, and all other forum answers regurgitate the same examples. The same environment's rebuilt commandline utilities work fine.</div><div dir="auto"><br></div><div dir="auto">Does anyone have any working example of reading some GPIO lines, and setting others?</div><div><br></div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>--</div><div>Scott G. Hall<br>Raleigh, NC, USA<br><a href="mailto:scottghall1@gmail.com" target="_blank" rel="noreferrer">scottghall1@gmail.com</a></div><i style="color:rgb(34,34,34)">\u201d</i><i style="color:rgb(34,34,34)">Failure is the opportunity to begin again more intelligently.\u201d -- Henry Ford</i></div></div></div></div></div></div></div>
_______________________________________________<br>
Triangle, NC Embedded Interest Group mailing list<br>
<br>
To post message: <a href="mailto:TriEmbed@triembed.org" target="_blank" rel="noreferrer">TriEmbed@triembed.org</a><br>
List info: <a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" rel="noreferrer noreferrer" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>
TriEmbed web site: <a href="https://TriEmbed.org" rel="noreferrer noreferrer" target="_blank">https://TriEmbed.org</a><br>
To unsubscribe, click link and send a blank message: mailto:<a href="mailto:unsubscribe-TriEmbed@bitser.net" target="_blank" rel="noreferrer">unsubscribe-TriEmbed@bitser.net</a>?subject=unsubscribe<br>
Searchable email archive available at <a href="https://www.mail-archive.com/triembed@triembed.org/" rel="noreferrer noreferrer" target="_blank">https://www.mail-archive.com/triembed@triembed.org/</a><br>
<br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">--------------------------------------------------------------<br>Carl J. Nobile (Software Engineer/API Design)<br><a href="mailto:carl.nobile@gmail.com" target="_blank" rel="noreferrer">carl.nobile@gmail.com</a><br>--------------------------------------------------------------</div></div>
</blockquote></div>