2014-10-03 10:18:13 +01:00
|
|
|
libmraa - Low Level Skeleton Library for Communication on GNU/Linux platforms
|
2014-04-28 18:39:07 +01:00
|
|
|
==============
|
2014-04-08 18:43:26 +01:00
|
|
|
|
2014-11-12 13:48:46 +00:00
|
|
|
Libmraa is a C/C++ library with bindings to javascript & python to interface
|
|
|
|
|
with the IO on Galileo, Edison & other platforms, with a structured and sane
|
|
|
|
|
API where port names/numbering matches the board that you are on. Use of
|
|
|
|
|
libmraa does not tie you to specific hardware with board detection done at
|
|
|
|
|
runtime you can create portable code that will work across the supported
|
|
|
|
|
platforms.
|
2014-04-08 18:43:26 +01:00
|
|
|
|
|
|
|
|
The intent is to make it easier for developers and sensor manufacturers to map
|
2014-04-25 15:49:19 +01:00
|
|
|
their sensors & actuators on top of supported hardware and to allow control of
|
|
|
|
|
low level communication protocol by high level languages & constructs.
|
2014-04-08 18:52:54 +01:00
|
|
|
|
2014-06-11 14:16:47 +01:00
|
|
|
Supported Boards
|
|
|
|
|
================
|
2014-05-23 14:47:23 +01:00
|
|
|
|
2014-11-21 16:44:56 +00:00
|
|
|
X86
|
|
|
|
|
---
|
2014-09-01 23:19:24 +01:00
|
|
|
* [Galileo Gen 1 - Rev D](../master/docs/galileorevd.md)
|
|
|
|
|
* [Galileo Gen 2 - Rev H](../master/docs/galileorevh.md)
|
2014-09-09 15:30:36 +01:00
|
|
|
* [Edison](../master/docs/edison.md)
|
2014-10-24 14:23:56 +01:00
|
|
|
* [Intel DE3815](../master/docs/intel_de3815.md)
|
2014-11-20 17:14:48 -08:00
|
|
|
* [Minnowboard Max](../master/docs/minnow_max.md)
|
2015-09-03 11:23:35 +01:00
|
|
|
* [NUC 5th generation](../master/docs/intel_nuc5.md)
|
2014-05-23 14:47:23 +01:00
|
|
|
|
2014-11-21 16:44:56 +00:00
|
|
|
ARM
|
|
|
|
|
---
|
2015-02-15 22:57:24 +00:00
|
|
|
* [Raspberry Pi](../master/docs/raspberry_pi.md)
|
2015-04-08 22:18:36 +01:00
|
|
|
* [Bannana Pi](../master/docs/banana_pi.md)
|
2015-04-09 16:23:37 +02:00
|
|
|
* [Beaglebone Black](../master/docs/beaglebone.md)
|
2014-11-21 16:44:56 +00:00
|
|
|
|
2015-09-07 11:39:58 +01:00
|
|
|
USB
|
|
|
|
|
---
|
|
|
|
|
* [FT4222](../master/docs/ftdi_ft4222.md)
|
|
|
|
|
|
2014-08-14 11:40:34 +01:00
|
|
|
Installing on your board
|
|
|
|
|
========
|
|
|
|
|
|
|
|
|
|
See the section below on compiling or use our repository to install on an
|
|
|
|
|
eglibc based yocto poky image that supports opkg. Adding this repository is as
|
2015-03-01 17:31:17 +00:00
|
|
|
simple as and you'll have the latest stable tagged build of mraa installed!
|
2014-08-14 11:40:34 +01:00
|
|
|
|
|
|
|
|
``` bash
|
2015-10-29 22:01:42 +01:00
|
|
|
echo "src mraa-upm http://iotdk.intel.com/repos/2.0/intelgalactic" > /etc/opkg/mraa-upm.conf
|
2014-08-14 11:40:34 +01:00
|
|
|
opkg update
|
2014-09-01 23:19:24 +01:00
|
|
|
opkg install libmraa0
|
2014-08-14 11:40:34 +01:00
|
|
|
```
|
|
|
|
|
|
2015-03-01 17:31:17 +00:00
|
|
|
If you would like to get the latest & greatest builds from master HEAD you can
|
|
|
|
|
use our -dev repository
|
|
|
|
|
|
|
|
|
|
```bash
|
2015-10-29 22:01:42 +01:00
|
|
|
echo "src mraa-upm http://iotdk.intel.com/repos/2.0/intelgalactic-dev" > /etc/opkg/mraa-upm.conf
|
2015-03-01 17:31:17 +00:00
|
|
|
opkg update
|
|
|
|
|
opkg install libmraa0
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
You can also install just the node.js mraa module by using npm. You will need a
|
|
|
|
|
C++ compiler and the node development headers, however it's not required to
|
|
|
|
|
have SWIG installed.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm install mraa
|
|
|
|
|
```
|
|
|
|
|
|
2014-06-11 14:16:47 +01:00
|
|
|
Compiling
|
|
|
|
|
=========
|
2014-05-23 14:47:23 +01:00
|
|
|
|
2014-08-14 11:27:22 +01:00
|
|
|
See documentation on [building](../master/docs/building.md)
|
2014-05-28 11:00:36 +01:00
|
|
|
|
2014-06-11 14:16:47 +01:00
|
|
|
Examples
|
|
|
|
|
========
|
2014-05-23 14:47:23 +01:00
|
|
|
|
2014-08-14 11:27:22 +01:00
|
|
|
See the [examples](../../tree/master/examples) available for various languages
|
2014-05-29 14:51:38 +01:00
|
|
|
|
2015-01-20 23:25:31 +00:00
|
|
|
Debugging
|
|
|
|
|
=========
|
|
|
|
|
|
|
|
|
|
Sometimes it just doesn't want to work, let us try and help you, you can file
|
|
|
|
|
issues in github or join us in #mraa on freenode IRC, hang around for a little
|
|
|
|
|
while because we're not necessarily on 24/7, but we'll get back to you! Have a
|
|
|
|
|
glance at our [debugging](../master/docs/debugging.md) page too.
|
|
|
|
|
|
2014-08-14 11:27:22 +01:00
|
|
|
C/C++ API Documentation
|
2014-06-11 14:16:47 +01:00
|
|
|
===========
|
2014-05-23 14:47:23 +01:00
|
|
|
|
2014-08-14 11:27:22 +01:00
|
|
|
The C/C++ documentation is available [here](http://iotdk.intel.com/docs/master/mraa/)
|
|
|
|
|
|
|
|
|
|
Python API Documentation
|
|
|
|
|
===========
|
|
|
|
|
|
|
|
|
|
The Python documentation is available [here](http://iotdk.intel.com/docs/master/mraa/python)
|
|
|
|
|
|
|
|
|
|
NodeJS API documentation
|
|
|
|
|
===========
|
|
|
|
|
|
2015-06-02 12:06:15 +01:00
|
|
|
The Javascript documention is available [here](http://iotdk.intel.com/docs/master/mraa/node/modules/mraa.html)
|