-45-
Document Name
AI7688H
Reference Manual
Version
V 2.0
Date 2019/08/08
10.2
Basic Concepts of MRAA
Libmraa is a C/C++ library to interface with the peripheral on AI7688H.
Libmraa is pre-installed in the system image of AI7688H and supports C++,
Python and Node.js bindings.
Installing MRAA:
Libmraa is already installed in the system image of AI7688H, so you don't
need to install it again.
Basic Concepts:
The majority of hardware modules such as GPIO, UART, SPI, and PWM are
represented as objects created by mraa's factory function.
These modules are initialized on certain pins that are identified by
pin
numbers
. The pin numbers in the libmraa on AI7688H are identical to the
GPIO number
in the data sheet and in the Linux GPIO subsystem. The
following Python example creates GPIO object on GPIO 2:
This maps AI7688H’s GPIO#2 (IS2_WS) pin in data sheet.