I'm wondering about accessing the GPIO of the Edison in high-level languages such as Python or Node.
So far I've found MRAA but wondered if there are other options?
I'm wondering about accessing the GPIO of the Edison in high-level languages such as Python or Node.
So far I've found MRAA but wondered if there are other options?
I just spotted UPM, runs on top of MRAA and provides a further abstraction so you can programme with LEDs and Light Sensors rather than working at the Pin level
Following our conversation yesterday ...
I did some searching and it turns out that the version of mraa-gpio is not the latest.
From here https://github.com/intel-iot-devkit/mraa
See the section below on compiling or use our repository to install on a glibc based yocto poky image that supports opkg.
Adding this repository is as simple as and you'll have the latest stable tagged build of mraa installed!
echo "src mraa-upm http://iotdk.intel.com/repos/3.5/intelgalactic-dev/opkg/i586" > /etc/opkg/mraa-upm.conf
opkg update
opkg install mraa
it took a few minutes
root@Edison_2:~# echo "src mraa-upm http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586" > /etc/opkg/mraa-upm.conf root@Edison_2:~# opkg update Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586//Packages. Updated list of available packages in /var/lib/opkg/iotkit. Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/all/Packages. Updated list of available packages in /var/lib/opkg/iotdk-all. Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/Packages. Updated list of available packages in /var/lib/opkg/iotdk-core2-32. Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/edison/Packages. Updated list of available packages in /var/lib/opkg/iotdk-edison. Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/Packages. Updated list of available packages in /var/lib/opkg/mraa-upm. root@Edison_2:~# opkg install mraa Upgrading mraa from 1.0.0-r0 to 1.5.1 on root. Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/mraa_1.5.1_i586.ipk. Removing package mraa-dev from root... Removing package mraa-doc from root... Removing obsolete file /usr/lib/libmraa.so.1.0.0. Configuring mraa. root@Edison_2:~# /usr/bin/mraa-gpio version Version v1.5.1 on Intel Edison root@Edison_2:~#
and now I have version 1.5.1
Mark
Following our conversation yesterday ...
I did some searching and it turns out that the version of mraa-gpio is not the latest.
From here https://github.com/intel-iot-devkit/mraa
See the section below on compiling or use our repository to install on a glibc based yocto poky image that supports opkg.
Adding this repository is as simple as and you'll have the latest stable tagged build of mraa installed!
echo "src mraa-upm http://iotdk.intel.com/repos/3.5/intelgalactic-dev/opkg/i586" > /etc/opkg/mraa-upm.conf
opkg update
opkg install mraa
it took a few minutes
root@Edison_2:~# echo "src mraa-upm http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586" > /etc/opkg/mraa-upm.conf root@Edison_2:~# opkg update Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586//Packages. Updated list of available packages in /var/lib/opkg/iotkit. Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/all/Packages. Updated list of available packages in /var/lib/opkg/iotdk-all. Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/Packages. Updated list of available packages in /var/lib/opkg/iotdk-core2-32. Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/edison/Packages. Updated list of available packages in /var/lib/opkg/iotdk-edison. Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/Packages. Updated list of available packages in /var/lib/opkg/mraa-upm. root@Edison_2:~# opkg install mraa Upgrading mraa from 1.0.0-r0 to 1.5.1 on root. Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/mraa_1.5.1_i586.ipk. Removing package mraa-dev from root... Removing package mraa-doc from root... Removing obsolete file /usr/lib/libmraa.so.1.0.0. Configuring mraa. root@Edison_2:~# /usr/bin/mraa-gpio version Version v1.5.1 on Intel Edison root@Edison_2:~#
and now I have version 1.5.1
Mark