MediaTek LinkIt™ Smart 7688 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 88
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.
9)
Set up the MPU, start by opening the SSH console and create a folder
app
,
#
is the console
prompt and is not part of the command.
# mkdir app && cd app
10)
Create a file app.js and open text editor by typing:
# vim app.js
11)
Press
i
and copy the following example in the text editor:
var Cylon = require('cylon');
Cylon.robot({
connections: {
arduino: { adaptor: 'firmata', port: '/dev/ttyS0' }
},
devices: {
led: { driver: 'led', pin: 13 }
},
work: function(my) {
every((1).second(), my.led.toggle);
}
}).start();
12)
Save and exit the editor by typing
:wq!
13)
Execute the Cylon.js program by typing the following command:
# node app.js
14)
The D13 LED on LinkIt Smart 7688 Duo should blink every second.
6.6.8.
Updating the ATmega32U4 Boot loader
This chapter introduces the methods you can use to program the boot loader on the ATmega32U4.
LinkIt Smart 7688 Duo is pre-programmed with Arduino boot loader in the microcontroller
(ATmega32U4). You are not required to program the boot loader, but in the event the boot loader
is damaged or requires re-programming, you can use one of the following methods to update the
boot loader.