2015-09-21 22:26:31 +03:00
|
|
|
libmraa - Low Level Skeleton Library for Communication on GNU/Linux platforms
|
|
|
|
|
==============
|
|
|
|
|
|
|
|
|
|
Libmraa is a C/C++ library with bindings to Java, Python and JavaScript to
|
|
|
|
|
interface with the I/O 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.
|
|
|
|
|
|
|
|
|
|
The intent is to make it easier for developers and sensor manufacturers to map
|
|
|
|
|
their sensors & actuators on top of supported hardware and to allow control of
|
|
|
|
|
low level communication protocol by high level languages & constructs.
|
|
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
|
|
These interfaces allow you to interact with all libmraa functionality. The
|
|
|
|
|
Java classes directly wrap the C/C++ API and provide a near 1:1 mapping of
|
|
|
|
|
functionality.
|
|
|
|
|
|
|
|
|
|
<center>
|
2018-01-08 12:10:22 -08:00
|
|
|
| C API Modules | Java API Classes |
|
2015-09-21 22:26:31 +03:00
|
|
|
|:----------------------:|:----------------------------:|
|
|
|
|
|
| @ref gpio.h "gpio" | @ref mraa::Gpio "Gpio class" |
|
2018-01-08 12:10:22 -08:00
|
|
|
| @ref led.h "led" | @ref mraa::Led "Led class" |
|
2015-09-21 22:26:31 +03:00
|
|
|
| @ref i2c.h "i2c" | @ref mraa::I2c "I2c class" |
|
|
|
|
|
| @ref aio.h "aio" | @ref mraa::Aio "Aio class" |
|
|
|
|
|
| @ref pwm.h "pwm" | @ref mraa::Pwm "Pwm class" |
|
|
|
|
|
| @ref spi.h "spi" | @ref mraa::Spi "Spi class" |
|
|
|
|
|
| @ref uart.h "uart" | @ref mraa::Uart "Uart class" |
|
|
|
|
|
| @ref common.h "common" | @ref mraa::mraa "mraa class" |
|
|
|
|
|
</center>
|
|
|
|
|
|
2015-10-01 16:24:53 +03:00
|
|
|
### Hello Mraa
|
|
|
|
|
@snippet HelloEdison.java Interesting
|
|
|
|
|
|
2015-09-21 22:26:31 +03:00
|
|
|
## Supported platforms
|
|
|
|
|
|
|
|
|
|
Specific platform information for supported platforms is documented here:
|
|
|
|
|
|
|
|
|
|
- @ref galileorevd
|
|
|
|
|
- @ref galileorevh
|
|
|
|
|
- @ref edison
|
|
|
|
|
- @ref de3815
|
|
|
|
|
- @ref minnowmax
|
|
|
|
|
- @ref rasppi
|
|
|
|
|
- @ref bananapi
|
|
|
|
|
- @ref beaglebone
|
2017-01-19 14:09:28 +01:00
|
|
|
- @ref phyboard-wega
|
2015-09-21 22:26:31 +03:00
|
|
|
- @ref nuc5
|
2016-05-13 14:20:25 +01:00
|
|
|
- @ref up
|
2017-02-24 16:37:45 -05:00
|
|
|
- @ref joule
|
2015-09-21 22:26:31 +03:00
|
|
|
- @ref ft4222
|
2018-06-11 22:47:39 -07:00
|
|
|
- @ref iei-tank
|
2019-06-04 18:53:28 +01:00
|
|
|
- @ref up-xtreme
|
2023-08-02 03:16:13 +05:30
|
|
|
- @ref _orange_pi_prime
|
2023-10-08 03:05:17 +00:00
|
|
|
- @ref radxa_cm3
|
|
|
|
|
- @ref radxa_rock_3b
|
|
|
|
|
- @ref radxa_rock_3c
|
|
|
|
|
- @ref radxa_rock_5a
|
|
|
|
|
- @ref radxa_rock_5b
|
|
|
|
|
- @ref rockpi4
|
2015-09-21 22:26:31 +03: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
|
2017-07-28 10:48:48 -03:00
|
|
|
glance at our @ref debugging page too
|
2015-09-21 22:26:31 +03:00
|
|
|
|
|
|
|
|
## COMPILING
|
|
|
|
|
|
|
|
|
|
More information on compiling is @ref building page.
|
|
|
|
|
|
|
|
|
|
## CONTRIBUTING
|
|
|
|
|
|
|
|
|
|
Please see the @ref contributing page, the @ref internals page may also be of
|
|
|
|
|
use.
|
|
|
|
|
|
2016-01-04 11:59:54 +00:00
|
|
|
## API Changelog
|
|
|
|
|
|
|
|
|
|
Version @ref changelog here.
|