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,
Tagged
Categories
- 301 All Categories
- 104 Announcements & News
- 51 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 52 Unboxing & Project Sharing
- 24 Tech Updates
- 547 UP Products
- 1 UP Xtreme i12
- UP Squared Pro 7000
- 1 UP Element i12 Edge
- 10 UP Squared V2
- 25 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 44 UP Squared Pro
- 140 UP Xtreme
- 819 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 43 UP AI Edge
- 215 Starter Kits & Peripheral