<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>Hi</div><div>I have problems makeing libmraa working on Linkit Smart 7688.</div><div>The installation worked without problems and i tested with a python script. See details below:</div><div><br class=""></div><div>what i did: </div><div>- Compiled a openWRT 18.6</div><div>- opkg update </div><div>- opkg install libmraa</div><div>- opkg install python3-light</div><div>- opkg install libmraa-python3</div><br class=""><div class="">- copied this skript to /root: </div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">import mraa</div></div><div class=""><div class="">import time</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class="">try:</div></div><div class=""><div class=""> print (mraa.getVersion())</div></div><div class=""><div class="">except:</div></div><div class=""><div class=""> print("no mraa available")</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class=""># Refer to the pin-out digram for the GPIO number to silk print mapping</div></div><div class=""><div class=""># in this example the number 44 maps to Wi-Fi LED.</div></div><div class=""><div class="">pin = mraa.Gpio(2)</div></div><div class=""><div class="">pin.dir(mraa.DIR_OUT)</div></div><div class=""><div class="">while True:</div></div><div class=""><div class=""> pin.write(1)</div></div><div class=""><div class=""> time.sleep(1)</div></div><div class=""><div class=""> pin.write(0)</div></div><div class=""><div class=""> time.sleep(1)</div></div></blockquote><div class=""><br class=""></div><div class="">- and executed:</div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">root@OpenWrt:~# python3 mraa-test-simple.py </div></div><div class=""><div class="">v2.0.0</div></div><div class=""><div class="">Traceback (most recent call last):</div></div><div class=""><div class=""> File "mraa-test-simple.py", line 11, in <module></div></div><div class=""><div class=""> pin = mraa.Gpio(2)</div></div><div class=""><div class=""> File "/usr/lib/python3.7/site-packages/mraa.py", line 391, in __init__</div></div><div class=""><div class=""> _mraa.Gpio_swiginit(self, _mraa.new_Gpio(pin, owner, raw))</div></div><div class=""><div class="">ValueError: Invalid GPIO pin specified</div></div><div class=""><br class=""></div></blockquote><br class=""><div class="">- checked with a LED on pin2 like this if GPIO2 works:</div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">root@OpenWrt:~# cd /sys/class/gpio/</div><div class="">root@OpenWrt:/sys/class/gpio# ls</div><div class="">export gpiochip0 gpiochip32 gpiochip64 unexport</div><div class="">root@OpenWrt:/sys/class/gpio# echo 2 > export</div><div class="">root@OpenWrt:/sys/class/gpio# ls</div><div class="">export gpio2 gpiochip0 gpiochip32 gpiochip64 unexport</div><div class="">root@OpenWrt:/sys/class/gpio# cd gpio2</div><div class="">root@OpenWrt:/sys/devices/platform/10000000.palmbus/10000600.gpio/gpiochip0/gpio/gpio2# echo "out" > direction</div><div class="">root@OpenWrt:/sys/devices/platform/10000000.palmbus/10000600.gpio/gpiochip0/gpio/gpio2# cat value</div><div class="">0</div><div class="">root@OpenWrt:/sys/devices/platform/10000000.palmbus/10000600.gpio/gpiochip0/gpio/gpio2# echo 1 > value</div></div><div class=""><br class=""></div></blockquote>- redone previous step with no changes in error output.<div class=""><br class=""></div><div class="">what am i missing?</div><div class=""><br class=""></div><div class="">Thanks for comments, Ivan Hörler</div></body></html>