Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: Paulo on April 04, 2013, 06:21:57 AM
-
Hi all
I belong to a local electronics club and they are thinking of getting some Raspberry Pi´s to teach the younger members interfacing for real world applications.
Naturally I want to recomend that TC be used but have a few questions about it.
1) Can one use hsetroot just like the x86 version to change the wallpaper?
2) Is sound/alsa available to enable the playback of wav files?
3) Can one use copy2fs.cfg to put everything into RAM and then remount the boot drive as ´ro´?
4) What programing languages/compilers are available to enable gpio access?
Another way would be the use of scripts to acess the gpio
For example:
#!/bin/sh
echo "4" >/sys/class/gpio/export
echo "out" >/sys/class/gpio/gpio4/direction
Lastly, I assume that wbar and jwm are also available.
Sorry about all the questions but I want to ensure that TC will be the right choice before recommending it.
Thanks.
-
Hi Paolo,
1) Yes
2) Yes
3) Yes
4) All major languages are available: C/C++, Python, Perl, Ruby, Fortran, VALA, LUA, BASIC. The Python GPIO modul is available in the repository.
5) piCore offers the same graphical envionment as TC, WBAR + FLWM_TOPSIDE + FLTK, this is piCore-X. LXDE is also available. JWM is in progress.
-
Hi bmarkus and thank you for the answers.
piCore for the PIs it is.
-
2) Yes
What package would I use/install to have sound? I was using
system("sox buzz1.wav -t alsa");
inside my C code on Arch to play my audio file. Can you point me in the right direction to do something like this on piCore?
-
Can you point me in the right direction to do something like this on piCore?
Here is an answer to my own question for others to make use of. I installed all the packages that started with alsa so I'm not sure which package I really needed. Anyway, it installed aplay and I use it in my code as follows:
system("aplay buzz1.wav");