Up squared change a GPIO pin (HAT) from input to output (or reversed)?
I have 2 Up Squared boards and I can not change the state of any GPIO pins (HAT) from input to output (or reversed) on Linux.
I saw that GPIO pins are connected to an FPGA and the IO state must be redefined in the BIOS setting. Is it possible to change the GPIO state on the software/OS side?
Answers
-
Hi @nhattan,
Yes it is possible. Kindly go through the guide in the links below.
https://github.com/up-board/up-community/wiki/Ubuntu_18.04#install-ubuntu-kernel-540-from-ppa-on-ubuntu-1804
https://github.com/up-board/up-community/wiki/Ubuntu_18.04#install-upboard-extras
https://github.com/up-board/up-community/wiki/Ubuntu_18.04#enable-the-hat-functionality-from-userspace
https://github.com/up-board/up-community/wiki/Ubuntu_18.04#add-groupshttps://github.com/up-board/up-community/wiki/Pinout_UP2#gpio
Best Regards,