logoalt Hacker News

NooneAtAll3today at 4:31 AM1 replyview on HN

asking as a casual non-poweruser... how does one do that on linux exactly?


Replies

stackghosttoday at 5:17 AM

https://www.kernel.org/doc/html/v5.0/driver-api/gpio/index.h...

You can usually find libraries for your language of choice to speak GPIO and expose the pin's state as a variable in your code.