RevPi Compact controlling digital output with libgpiod issue
Posted: 30 Jul 2021, 15:31
We're trying to set the gpio pin to high, but it won't go to high when we actually go to measure on the digital output pin. The digital output led flashes only briefly though.
Using the following code in the terminal:
When we try to readout pin 0 it actually says it's high ('1') and led briefly flashes, but when we read it out with multimeter it's still at 0V.
Then when we try with the following code, we get ~3.3V on the digital output pin when reading it out with multimeter and the leds keep flashing briefly on the RevPi:
What is causing this ( is it the watchdog still?) and how can this problem be solved?
Thanks.
Using the following code in the terminal:
Code: Select all
sudo chrt -f 48 gpioset gpiochip3 0=1
gpioget gpiochip3 0
Then when we try with the following code, we get ~3.3V on the digital output pin when reading it out with multimeter and the leds keep flashing briefly on the RevPi:
Code: Select all
while true; do sudo chrt -f 48 gpioset gpiochip3 0=1; done
Thanks.