MEDIATEK LinkIt Smart 7688 Developer's Manual page 87

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

Advertisement

needed to communicate with the hardware attached to Arduino. While you can install
Firmata and Cylon using NPM on LinkIt Smart 7688 Duo, the process is a bit long, that's
why you should install
modules from there. The steps to install Firmata are already described in section 6.6.6,
"Node.js example" and it's the same for Cylon. Therefore, only Cylon example is used
below. Create a folder called
command prompt and is not part of the command.
$ mkdir testcylon && cd testcylon
After you've installed NPM, use it to initialize the file. For example:
4)
$ npm init
Install four Cylon on your computer by typing the following command.
5)
$ npm install cylon –-save
$ npm install cylon-firmata –-save
$ npm install cylon-gpio –-save
$ npm install cylon-i2c –-save
Remove node-serial port by typing the following command.
6)
$ rm –rf ./node_modules/cylon/node_modules/serialport
$ rm –rf ./node_modules/cylon-firmata/node_modules/serialport
$ rm –rf ./node_modules/cylon-gpio/node_modules/serialport
$ rm –rf ./node_modules/cylon-i2c/node_modules/serialport
Cylon has a built in node-serial port and when you installed Cylon, it creates a compile file on your
computer. However, this compile file needs to be removed because it's already built in LinkIt
Smart 7688.
Compress the Cylon folder
7)
$ tar –cvf ./cylon.tar ./node_modules/cylon
Use scp to transfer the compressed file to LinkIt Smart 7688 Duo
8)
$ scp ./cylon.tar root@mylinkit.local:/root/app/node_modules
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
NPM
on your computer instead and install Firmata and the Cylon
testcylon
and switch to the directory. The $ indicates
© 2015, 2016 MediaTek Inc.
Page 87

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents