WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Questions about TC for the RPI  (Read 5230 times)

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Questions about TC for the RPI
« 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:
Code: [Select]
#!/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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Questions about TC for the RPI
« Reply #1 on: April 04, 2013, 08:01:20 AM »
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.

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Questions about TC for the RPI
« Reply #2 on: April 04, 2013, 09:54:48 AM »
Hi bmarkus and thank you for the answers.
piCore for the PIs it is.
« Last Edit: April 04, 2013, 09:59:11 AM by Paulo »

Offline phillip.toone

  • Newbie
  • *
  • Posts: 40
Re: Questions about TC for the RPI
« Reply #3 on: April 14, 2013, 10:14:57 PM »
2) Yes

What package would I use/install to have sound?  I was using

Code: [Select]
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?

Offline phillip.toone

  • Newbie
  • *
  • Posts: 40
Re: Questions about TC for the RPI
« Reply #4 on: April 14, 2013, 10:54:14 PM »
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:

Code: [Select]
system("aplay buzz1.wav");