Hi!
Any way in Zephyr to read the current value of a GPIO pin that is configured as OUTPUT?
Thanks!
Pedro.
Hi!
Any way in Zephyr to read the current value of a GPIO pin that is configured as OUTPUT?
Thanks!
Pedro.
you can use still use Zephyr's gpio_pin_get() to get the state of the the output pin.
To be more precise: you read to level of the input at that pin. If the output is high, but the load pulls it too much down, you will read a low instead of the value high set to the output. Maybe in my case, the load is out of spec.