MediaTek LinkIt™ Smart 7688 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 59
This document contains information that is proprietary to MediaTek Inc.
Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.
5.
Peripheral Programming on LinkIt Smart 7688
This chapter describes how to program the peripheral sensors on the LinkIt Smart 7688 board.
From the hardware aspect, MediaTek MT7688 SOC on the LinkIt Smart 7688 board handles all the
Wi-Fi communication, USB device control, SD card access and sensor connection. As shown in
Figure 42. Related software stacks are provided for developers to access the sensors attached to
the MT7688.
UPM is the repository for sensor drivers written in libmraa and it provides API bindings for Python,
Node.js and C languages. So it’s convenient for developers to use UPM to access peripheral
sensors and modules with the programming language that they preferred. LinkIt Smart 7688 has
built-in UPM support for Seeed studio’s GROVE sensors. For sensors with different
manufacturers, developers can also have the UPM driver support by installing them through the
opkg, see section 3.3, “OPKG Packager Manager” for more information. The detailed support list of
sensors in UPM can be found in the
Figure 42 LinkIt Smart 7688 Software Architecture
5.1.
How to Access LinkIt Smart 7688 Peripheral using MRAA
Libmraa is a C/C++ library to interface with the peripheral on LinkIt Smart 7688. Libmraa is pre-
installed in the system image of LinkIt Smart 7688 and supports Python, Javascript and Node.js
languages. This section describes how to control LinkIt Smart 7688 peripherals such as GPIO
through libmraa.