Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gnu-octave/octave-rpi-gpio
GNU Octave wrapper around libbcm2835 for GPIO control of the RaspberryPI IOs
https://github.com/gnu-octave/octave-rpi-gpio
Last synced: 3 days ago
JSON representation
GNU Octave wrapper around libbcm2835 for GPIO control of the RaspberryPI IOs
- Host: GitHub
- URL: https://github.com/gnu-octave/octave-rpi-gpio
- Owner: gnu-octave
- Created: 2014-07-04T20:04:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T12:39:50.000Z (over 3 years ago)
- Last Synced: 2024-05-18T21:47:01.974Z (about 2 months ago)
- Language: C++
- Size: 2.93 KB
- Stars: 8
- Watchers: 6
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Lists
- awesome-MATLAB - Rasperry Pi IO Support for Octave - Control Rasperry Pi GPIO Port from Octave. (Hardware)
README
octave-rpi-gpio
===============GNU Octave wrapper around libbcm2835 for GPIO control of the RaspberryPI IOs
Oct wrapper v0.0.2 around libbcm2835
1.) install octave and liboctave-dev as described on
http://wiki.octave.org/Rasperry_Pi2.) get and compile libbcm2835 from http://www.airspayce.com/mikem/bcm2835/:
```
$ wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.68.tar.gz
$ tar xzvf bcm2835-1.68.tar.gz
$ cd bcm2835-1.68/
$ ./configure CFLAGS=-fPIC
$ make
$ sudo make install
```3.) compile the oct wrapper
```
$ cd ..
(current directory is now octave-rpi-gpio, the root of the repo)
$ make
```
4.) Test it (run octave as root to have GPIO access rights)
```
$ sudo octave
execute simple Test with GPIO 7 (lower right edge, see here http://elinux.org/RPi_Low-level_peripherals)
Attention: there is also a Revision2 with different GPIO layoutoctave:1> test_bcm2835oct
```