SUPPORT & DOCUMENTATION
Hi Graham, can you try our Debian image or Yocto image, it has MRAA pre-installed already.
Is "The linux pin numbers are reported invalid" an error message you see in the terminal? If yes, you might be running this software on another board?
We also need to install wxpython and were unable to do so on the Debian image. Will any numbers work with ubuntu? I tried some random values.
The iPi runs on ARM, so when https://docs.ipi.wiki/iot_pi/HowToInstallMRAA.html failed in python "mraa.Gpio() not recognized), I ran the install at http://iotdk.intel.com/docs/master/mraa/python/ which does not accept any pin number as valid. Any suggestions please? Graham
Debian installed easily of course, but wxpython just would not. I did not check out mraa at that time.
With OS Linux4.4.167-aarch64-with-Ubuntu-18.04-bionic, once built and installed, our IT guy was able to get wx up and running, I installed mraa v 2.2.0 and Gpio does not work - all pin numbers are invalid.
I hate to dump this nice little computer, but the basics - IO - have to work. please give me some ideas to proceed.
Correction at command line I supplied an argument pin = mraa.Gpio(3)
Hi Graham, I already mentioned it in my last answer : do not install MRAA, it is already pre-installed in the Debian image that is provided by IPI. If you install another version on top of that, that will likely break the configuration.
Download IPI SMARC Debian image.
Flash to SD card.
Boot up : MRAA should be working, test with the command "mraa gpio list" for example.
Install your own app and dependencies.
Let me know if that worked for you.
@PiDan I did this over in case I had inadvertently changed something: a fresh image from the ADLINK Debian download. SMARC_LEC-PX30_Images_Debian_LEC-PX30-IPi-SMARC_Debian10_xfce_sd_20200512
At the command line mraa gpio list is "command not found"
With command python3, import mraa is accepted.
Your suggested command gets "invalid syntax".
Then pin = Gpio(23) gets"Invalid GPIO pin specified".
Am I doing something wrong? If so I don't see it.
I do appreciate your willingness to help.
A colleague found that mraa runs under debian if you invoke root. sudo python3 works!
I will try this under ubuntu as that image has wxpython installed.
I will either log on as root or include a command line script in my python code.
Thanks for hanging in, Graham.