ryo 0 Posted September 20, 2024 Hello, I am currently trying to check GPIO control with TinkerBoard3S. ・Environment TinkerBoard3S OS:Tinker Board 3 Debian 11 (kernel 5.10) V.1.0.1(The results were the same with 1.0.4) I tried to check the LED blinking with pin108 using the following sample code, but it doesn't work.(there is no import error) import ASUS.GPIO as GPIO import time GPIO.setmode(GPIO.ASUS) GPIO.setwarnings(False) GPIO.setup(108, GPIO.OUT) while True: GPIO.output(108, GPIO.HIGH) time.sleep(0.2); GPIO.output(108, GPIO.LOW) time.sleep(0.2); The result of "gpio readall" before executing sample code is bellow, but after executing the 108 pin mode remained IN. Also, to check UART communication, I enabled UART communication from tinker-config, but there was no change in "gpio readall" results. Is there anything else I need to do regarding the GPIO control? linaro@linaro-alip:~$ gpio readall +-----+-----+---------+------+---+--Tinker--+---+------+---------+-----+-----+ | CPU | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | CPU | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | | | GPIO8A4 | | | 3 || 4 | IN | 5v | 146 | 146 | | 105 | 105 | GPIO8A5 | IN | 5 || 6 | IN | 0v | 147 | 147 | | 106 | 106 | GPIO0C1 | IN | 7 || 8 | IN | GPIO5B1 | 148 | 148 | | 107 | 107 | 0v | IN | 9 || 10 | IN | GPIO5B0 | 149 | 149 | | 108 | 108 | GPIO5B4 | IN | 11 || 12 | IN | GPIO6A0 | 150 | 150 | | | | GPIO5B6 | | | 13 || 14 | | | 0v | | | | | | GPIO5B7 | | | 15 || 16 | | | GPIO5B2 | | | | | | 3.3v | | | 17 || 18 | | | GPIO5B3 | | | | | | GPIO8B1 | | | 19 || 20 | | | 0v | | | | | | GPIO8B0 | | | 21 || 22 | | | GPIO5C3 | | | | | | GPIO8A6 | | | 23 || 24 | | | GPIO8A7 | | | | | | 0v | | | 25 || 26 | | | GPIO8A3 | | | | | | GPIO7C1 | | | 27 || 28 | | | GPIO7C2 | | | | | | GPIO5B5 | | | 29 || 30 | | | 0v | | | | | | GPIO5C0 | | | 31 || 32 | | | GPIO7C7 | | | | | | GPIO7C6 | | | 33 || 34 | | | 0v | | | | | | GPIO6A1 | | | 35 || 36 | | | GPIO7A7 | | | | | | GPIO7B0 | | | 37 || 38 | | | GPIO6A3 | | | | | | 0v | | | 39 || 40 | | | GPIO6A4 | | | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | CPU | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | CPU | +-----+-----+---------+------+---+--Tinker--+---+------+---------+-----+-----+ Share this post Link to post Share on other sites
tooz 54 Posted October 24, 2024 hello @ryo, sorry for the late reply. we've fixed the issue and enabled the functions needed for gpio. please download the sources from the link (the installation guide is included in the file) and see if it fixes the issue. https://www.asuswebstorage.com/navigate/a/#/s/C0207D0873FB43C8992205ECE564BF064 also as wiringpi is deprecated, we have shifted our focus and support to eapi and mraa Share this post Link to post Share on other sites
ryo 0 Posted October 25, 2024 (edited) (Sorry for posting so many times, I think it was due to my operation error) hello @tooz, Thank you so much for your kind message and help. I followed the steps for the link you shared, and was able to use the GPIO. FYI, I think the results of the gpio readall does not match what you want to show. I attached the screen shots of the results of gpio readall. (the pictures of the previous post, when I enable UART0 from tinker-config) Best regards, Edited October 25, 2024 by ryo typing error Share this post Link to post Share on other sites
tsukazaki 0 Posted November 7, 2024 Hello @tooz, I am currently working on a port from a Raspberry 3B to a TinkerBoard 3S. I need to control the GPIO, but should I move to operating via MRAA or EAPI instead of "gpio" commands? Tinker Board was not listed as a supported model on the MRAA development page, so I am looking for results and sample code for operation with it. Do you have any information? Share this post Link to post Share on other sites
tooz 54 Posted November 7, 2024 hello @tsukazaki, it would be more convenient for you to use either mraa or eapi than the gpio commands for sure 1. for mraa, please flash to android (the images can be downloaded from the official website and the latest version is Tinker Board 3 Android 14 (kernel 6.1) V.1.0.9 ) for instructions and sample code of mraa, please visit the wiki: https://github.com/TinkerBoard/TinkerBoard/wiki/Tinker-Board-3N#343-mraa-library-for-android 2. will update the information of eapi later once it's available Share this post Link to post Share on other sites
tsukazaki 0 Posted November 7, 2024 Hi @tooz Thanks for the information. The code I am porting assumes Debian, so I would like to make the GPIO control available for Debian. By the way, is the gpio command already installed on the TinkerBoard3S OS image (ver 1.0.4) a customized version of WiringPi for TinkerBoard 3S? Share this post Link to post Share on other sites
tooz 54 Posted November 8, 2024 hello @tsukazaki, 9 hours ago, tsukazaki said: By the way, is the gpio command already installed on the TinkerBoard3S OS image (ver 1.0.4) a customized version of WiringPi for TinkerBoard 3S? we're aiming to include this in the upcoming release and it will be supported in v.1.0.6 or later versions and here are the sources and docs for eapi: Tinker Board 3 & 3S · TinkerBoard/TinkerBoard Wiki 1 Share this post Link to post Share on other sites