Let's say you have set a GPIO pin (I'll arbitrarily say pin 25) to either hi or low, using one of pinctrl set 25 op dh or pinctrl set 25 op dl. Now later on in a different program I want to know what the current state of that pin is, without changing its state and without accidentally resetting it to be an input pin. In a bash script could I just use variable=$(pinctrl get 25) to get the current value into a variable, or would that reset it to be an input pin?
Statistics: Posted by berrygood — Thu Jul 04, 2024 1:50 am — Replies 1 — Views 44