voxl-gpio not working as expected
-
I have tried all the listed GPIO pins exposed on connectors J7, J10, J11 and J12.
Why can't I write to a GPIO pin?
-
Hello Matthew,
When you execute
voxl-gpio write, it configures the desired pin to OUTPUT mode and sets the desired state (0=low or 1=high). When you executevoxl-gpio read, the pin is configured as INPUT with a pull-up, so any previous pin state is no longer applicable. If nothing is connected to the pin while it is configured as INPUT, it will read 1 due to the pull-up.If you would like to test the pin
readandwritefunctionality, you could set up a loop back connection, where you connect two pins together and you write one pin and read another.I hope this helps
Alex
-
Great, thanks for the info. I suspected something along those lines.
Reading along? Create a free ModalAI Forum account to join in.
With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.
Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.
Register Login