GPIO access using Octave in Raspberry Pi 2

480 views
Skip to first unread message

Talles Parrini Dantas

unread,
Jun 2, 2015, 3:52:47 PM6/2/15
to bcm...@googlegroups.com
Hi, I tried to control the GPIOs of Raspberry Pi 2 model B using Octave according with this link: https://github.com/octave-de/octave-rpi-gpio
The commands are simple:
    $ wget http://www.open.com.au/mikem/bcm2835/bcm2835-1.16.tar.gz
    $ tar xzvf bcm2835-1.16.tar.gz
    $ cd bcm2835-1.16/
    $ ./configure
    $ make
    $ sudo make install
  $ make
Then open the Octave and just type
 octave:1> test_bcm2835oct
This should work, but an error message appears saying that the "test_bcm2835oct" wasn't found, but we are quite sure that everything was installed.
Does someone have an idea of what we are doing wrong? It's our first week working with the Pi and we are out of ideas.  

Mike McCauley

unread,
Jun 2, 2015, 8:25:20 PM6/2/15
to bcm...@googlegroups.com
Hello,

I dont know anything about Octave, but I do know that link you followed for
bcm2835-1.16 is very old and way out of date. That version of the code will
*not* work with RPi 2.

current version is at:
http://www.airspayce.com/mikem/bcm2835/bcm2835-1.42.tar.gz

Cheers
--
Mike McCauley VK4AMM mi...@airspayce.com
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.airspayce.com
Phone +61 7 5598-7474

Reply all
Reply to author
Forward
0 new messages