Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.

License

NotificationsYou must be signed in to change notification settings

eclipse/mraa

Repository files navigation

Eclipse Mraa - Low Level I/O Communications Library for GNU/Linux platforms

Eclipse Mraa (Libmraa) is a C/C++ library with bindings to Java, Python and JavaScriptto interface with the I/O pins and buses on various IoT and Edge platforms, with astructured and sane API where port names/numbering match the board that you are on.Use of libmraa does not tie you to specific hardware. Since board detection done atruntime 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 maptheir sensors & actuators on top of supported hardware and to allow control oflow level communication protocol by high level languages & constructs.

The MRAA project is an Eclipse IoT project. A detailed project description can be foundhere.

Build StatusQuality Gate

Supported Boards

X86

ARM

MIPS

FPGA

USB

I2C

Mock

JSON platform

RISC-V

Installing on your board

Installing on Ubuntu

Here is a PPA for installing on Ubuntu Xenial or Bionic:https://launchpad.net/~mraa/+archive/ubuntu/mraa

sudo add-apt-repository ppa:mraa/mraasudo apt-get updatesudo apt-get install libmraa2 libmraa-dev libmraa-java python-mraa python3-mraa node-mraa mraa-tools

Running MRAA tools or applications on Ubuntu systems requires elevated permissions(e.g. run withsudo).

Install on Arch Linux

There is an AUR package for mraa here:https://aur.archlinux.org/packages/mraa

Install on openSUSE or SLE

For the latest versions of openSUSE and SLE the project is distributed vianative repositories and can be installed by developers with:

sudo zypper install mraa mraa-devel

For ARM boards use:

REPO="openSUSE_Tumbleweed"iftest"$(arch)" =="aarch64";then  REPO="openSUSE_Factory_ARM"fisudo zypper ar http://download.opensuse.org/repositories/hardware/$REPO/hardware.reposudo zypperin mraa

A full list of packages and instructions for installing MRAA for various openSUSE releasescan be foundhere.

Install on Fedora Linux

There is an mraa package in the main Fedora repository so it can be dnf installedin all recent Fedora releases. The Node.js and Python 3 bindings are packaged asseparate packages.

sudo dnf install mraa nodejs-mraa python3-mraa

Installing for Red Hat Enterprise Linux, CentOS and Other Linux Distributions

The MRAA project does not currently distribute official binaries for RHELor CentOS so developers will have to compile the project from sources asdescribed in the next section.

For testing and development purposes it may be possible to share and install.deb and .rpm packages across similar Linux builds.

Compiling

See documentation onbuilding

Examples

See theexamples available for various languages

Debugging

Sometimes it just doesn't want to work, let us try and help you, you can fileissues in github or join us in #mraa on freenode IRC, hang around for a littlewhile because we're not necessarily on 24/7, but we'll get back to you! Have aglance at ourdebugging page too.

API Documentation

Contact Us

To ask questions either file an issue on Github or send an email to ourmailing list.You must be subscribed to the list before you can post.You might also catch us on the mraa channel on freenode IRC.

See theContribution documentation for more details.

Changelog

Version changeloghere.

About

Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp