sn00zerman
Posts: 20
Joined: Wed Jun 06, 2012 3:42 pm

Re: Gambas

Tue Jun 12, 2012 4:54 pm

Gambas3 works fine for me, by following the instructions of TomTor.
(Thanks for sharing)

However, what do I need to do, to be able to "control" GPIO from within Gambas3 ?
(or should I post this question in a Gambas forum ?)

best regards,
Kris
http://www.digitalplayground.be

tomtor
Posts: 44
Joined: Sun Apr 08, 2012 2:19 am
Contact: Website

Re: Gambas

Tue Jun 12, 2012 5:24 pm

sn00zerman wrote:Gambas3 works fine for me, by following the instructions of TomTor.
(Thanks for sharing)

However, what do I need to do, to be able to "control" GPIO from within Gambas3 ?
(or should I post this question in a Gambas forum ?)

best regards,
Kris
http://www.digitalplayground.be
Hi Snoozerman,

I don't have received a Pi yet, but you can find various instructions on how to use the GPIO when you google, eg:

http://www.instructables.com/id/Control ... y-Pi-GPIO/

It is important to understand that in many cases you can control Linux hardware just by reading and writing special files which exist in the file system.

On

http://www.instructables.com/id/Control ... l-Outputs/

it is explained that by writing text strings to special files, you can control the GPIO hardware.

The linux command:

echo "21" > /sys/class/gpio/export

will write the text string "21" to file "/sys/class/gpio/export".

All you'll have to do from your Gamba program is to write to these files with Gamba basic statements. I'm not a Gamba user myself, so I cannot give you a working example, but I hope the concept is clear.

sn00zerman
Posts: 20
Joined: Wed Jun 06, 2012 3:42 pm

Re: Gambas

Tue Jun 12, 2012 5:37 pm

Tom, thanks once again !
(it's as clear as water to me now)

I hope your Pi arrives soon :-)

g4eml
Posts: 56
Joined: Wed Oct 05, 2011 1:50 pm

Re: Gambas

Tue Jun 12, 2012 6:33 pm

I have found a work around for my sound problems.

Before running Gambas3 I need to run the LXMusic program, click the stop button then leave the program running.

Then when I start Gambas and run my program there is a message in the Console window saying "there is no soundcard" . Despite this message the Gambas music.play method then works as expected. In fact if the message is not displayed the sound will fail.

Very strange but at least it allows me to use the sound features.

It looks like the initialisation of the sound system might be casing the problem. Quite possibly because the Pi ALSA software is still not finished.

I would be interested to know if anyone else has seen the problem. It can easily be seen by running the Gambas Example Music Player program.

Colin

Mikeyl
Posts: 23
Joined: Wed Jun 20, 2012 11:15 am

Re: Gambas

Wed Jun 20, 2012 11:17 am

Have just received my pi and downloaded the .deb archive above for Gambas3. Had to run apt-get update before it would work as a number of dependencies were missing.

But it now loads up and runs.

As a former VB6 programmer (I now make Toy Soldiers for a living :-)) it looks easy to get into

Mike

tickett
Posts: 15
Joined: Sun Feb 12, 2012 6:09 pm
Contact: Website

Re: Gambas

Sat Jul 07, 2012 3:31 pm

Re-download the file- it is probably corrupt.

tickett
Posts: 15
Joined: Sun Feb 12, 2012 6:09 pm
Contact: Website

Re: Gambas

Thu Jul 19, 2012 7:40 pm

I posted an sd card image of debian squeeze official image with gambas2 installed and ready to roll for any still struggling: http://tickett.wordpress.com/2012/07/15 ... -sd-image/

Hopefully i'll be able to do the same with raspian shortly.

L

g4eml
Posts: 56
Joined: Wed Oct 05, 2011 1:50 pm

Re: Gambas

Thu Jul 19, 2012 9:05 pm

Gambas 3 is in the available packages for Raspbian. However, although it installs without error it will not run. It just hangs when started with no error messages and nothing displayed. CPU shows 100%. Has to be killed from terminal.

I'd be very interested if you manage to get it to run as I have a program running under Debian Squeeze that I would like to move to Raspbian.

Colin.

tickett
Posts: 15
Joined: Sun Feb 12, 2012 6:09 pm
Contact: Website

Re: Gambas

Thu Jul 19, 2012 9:45 pm

I already have it running in wheezy so hopefully wont take me too long getting it running in raspian- now where's my pi :)

tickett
Posts: 15
Joined: Sun Feb 12, 2012 6:09 pm
Contact: Website

Re: Gambas

Thu Jul 19, 2012 11:13 pm

OK- I get the same issue with install AOK but unable to launch gbr3 using 100% cpu (that's with 3.1.1-2 from the raspbian repository. I'm going to attempt to download 3.2 and compile- no idea how successful i'll be!

tickett
Posts: 15
Joined: Sun Feb 12, 2012 6:09 pm
Contact: Website

Re: Gambas

Fri Jul 20, 2012 5:11 pm

not seeing great results compiling 3.2.0 from source either... now trying latest trunk version with crossed fingers :-/

g4eml
Posts: 56
Joined: Wed Oct 05, 2011 1:50 pm

Re: Gambas

Sat Aug 04, 2012 9:06 pm

Managed to build 3.2.1 from source. See this post http://www.raspberrypi.org/phpBB3/viewt ... 23#p141623 for a bit more info.

Colin

Return to “Other projects”