3 ms·
asking as a casual non-poweruser... how does one do that on linux exactly?
by NooneAtAll3 7mo ago
asking as a casual non-poweruser... how does one do that on linux exactly?
- stackghost 7mo agohttps://www.kernel.org/doc/html/v5.0/driver-api/gpio/index.html 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.