Help/info for Controlling GPIO pins VOCORE2
Posted: Mon Dec 09, 2019 4:09 pm
Hello,
i am very new to Vocore2 and would like to control the GPIO pins. I have tried Vongers Guide (http://vonger.cn/?p=473) where we can manually edit the special files which control the GPIO pins. Im having problem where some GPIO pins dont work, while some pins do work. This forum post is exactly my problem (viewtopic.php?f=16&t=3470) but no one solved this.
My question is, am i doing something wrong when entering the commands in shell to the GPIO files under /sys/class/gpio ?: "echo (gpio_pin) > export, echo out > direction, echo 1 > value" this works perfectly for some GPIO pins like pin 37, but does not for for pin 5. So is there some extra command needed to tell the Vocore2 that the pin5 should be GPIO and not i2c data pin? (like raspberry pi set BCM pins layout similiar situation?).
Also another question, If there is any python library to control GPIO pins on Vocore2 please let me know, would be amazing.
Any help is greatly appreciated.
thanks,
fritz
i am very new to Vocore2 and would like to control the GPIO pins. I have tried Vongers Guide (http://vonger.cn/?p=473) where we can manually edit the special files which control the GPIO pins. Im having problem where some GPIO pins dont work, while some pins do work. This forum post is exactly my problem (viewtopic.php?f=16&t=3470) but no one solved this.
My question is, am i doing something wrong when entering the commands in shell to the GPIO files under /sys/class/gpio ?: "echo (gpio_pin) > export, echo out > direction, echo 1 > value" this works perfectly for some GPIO pins like pin 37, but does not for for pin 5. So is there some extra command needed to tell the Vocore2 that the pin5 should be GPIO and not i2c data pin? (like raspberry pi set BCM pins layout similiar situation?).
Also another question, If there is any python library to control GPIO pins on Vocore2 please let me know, would be amazing.
Any help is greatly appreciated.
thanks,
fritz