MediaTek LinkIt™ Smart 7688 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 68
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.
6.
Peripheral Programming on LinkIt Smart 7688 Duo
This chapter describes how to program the peripheral sensors connected to the ATmega32U4
microcontroller and how to communicate between the microcontroller and the MT7688, as
shown in Figure 44.
A few key things to know is that majority of peripherals, including I2C and SPI sensors are
connected to the ATmega32U4 microcontroller on LinkIt Smart 7688 Duo and the microcontroller
on LinkIt Smart 7688 Duo is preloaded with boot loader that supports Arduino IDE programming.
Therefore, the following sections will begin with introduction on how to setup the Arduino IDE,
then, describe the basic ideas of communicating between MT7688 and ATmega32U4, followed by
some examples of different programming models that can be used to develop the application
logic.
Figure 44 LinkIt Smart 7688 Duo Hardware Architecture
6.1.
Installing Arduino IDE
LinkIt Smart 7688 Duo’s MCU (ATmega32U4) can be programmed using Arduino IDE 1.6.5 and
Arduino IDE board support package. You can install Arduino IDE 1.6.5 on your computer from
6.2.
Installing Board Support Package
Arduino IDE 1.6.5 supports third party board integration using the
Board Manager
tool. LinkIt
Smart 7688 development board is a plug-in to Arduino IDE and you’ll need to install the board
package so that Arduino supports LinkIt board. Please follow the steps below:
1)
In Arduino IDE, on the
File
menu click
Preferences
then insert
http://download.labs.mediatek.com/package_mtk_linkit_smart_7688_test_index.
json
to the
Additional Boards Manager URLs
field as shown Figure 45: