MEDIATEK LinkIt Smart 7688 Developer's Manual page 88

Hide thumbs Also See for LinkIt Smart 7688:
Table of Contents

Advertisement

Set up the MPU, start by opening the SSH console and create a folder app, # is the console
9)
prompt and is not part of the command.
# mkdir app && cd app
Create a file app.js and open text editor by typing:
10)
# vim app.js
Press i and copy the following example in the text editor:
11)
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();
Save and exit the editor by typing :wq!
12)
Execute the Cylon.js program by typing the following command:
13)
# node app.js
The D13 LED on LinkIt Smart 7688 Duo should blink every second.
14)
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.
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.
MediaTek LinkIt™ Smart 7688 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 88

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents