Today my VoCore modules arrived from China (they are amazingly tiny). So time for a first LED blink right? Ok, I wanted to get things working quickly so I decided to go with the pre-installed OpenWrt and Python + sysfs. Unfortunately there is not Python on the device, and also the right package sources are missing. However, this could be easily fixed.
1) Add additional package source to /etc/opkg.conf
src/gz cheese_packages http://downloads.openwrt.org/snapshots/trunk/ramips/packages/packages
2) Update package index
3) Install Python
Unfortunately the Python package has a unresolved dependency (to libcrypt). Thus, we need to fore the install:
opkg install --force-depends python
Now we are able to use this simple script (since the sysfs GPIO support is already enabled on the VoCore):
Note on Micropython
I was very happy to see that micropython is available as a package from the OpenWrt repository. So this was my first try. Unfortunately, mircropython was not able to read/write the sysfs pseudo-files, and thus I had to revert to „real“ Python.