Scratch is a programming language that makes it easy to create your own interactive stories, animations, games, music, and art — and share your creations on the web.
As young people create and share Scratch projects, they learn important mathematical and computational ideas, while also learning to think creatively, reason systematically, and work collaboratively.
Scratch supports Linux and it’s easy to install it on A13-OLinuXino, on A13 the IDE runs at same speed as on desktop computer.
To install Scratch you will need to have 2G or 4GB SD card with installed X environment and 100MB free space at least because scratch installing requires around 80MB.
Also you need to configure internet access using WIFI or USB ethernet adapter. The settings are in /etc/network/interfaces.(see https://olimex.wordpress.com/2012/11/23/running-debian-with-xfce4-on-a13-olinuxino/ for details).
1. Update the Package Index with:
# apt-get update
2. Install the scratch with:
# apt-get install scratch
3. Note that by default scratch is set with oss audio driver and you have to change it to alsa sound driver.
- type # vi /usr/bin/scratch
- search for the following code:
if pulseaudio - - check 2>/dev/null ; then VMOPTIONS="$VMOPTIONS -vm-sound-oss" if padsp true 2>/dev/null ; then WRAPPER=padsp fi fi
- Comment the above lines
#if pulseaudio - - check 2>/dev/null ; then # VMOPTIONS="$VMOPTIONS -vm-sound-oss" # if padsp true 2>/dev/null ; then # WRAPPER=padsp # fi #fi and add VMOPTIONS="$VMOPTIONS -vm-sound-alsa" after commented lines.
4. Start X environment(for example use: startxfce4 &). The scratch is located in Application Menu>Education>Scratch
Here is video of A13-OLinuXino-WIFI running scratch animations http://www.youtube.com/watch?v=LEnpu7PBHs4&feature=youtu.be
Now we have to figure out only how to make custom A13 blocks which allow control of the GPIOs, SPI, UART and I2C via Scratch, then this may become some great platform for small robot control.
1 Comment (+add yours?)