Skip to content

Commit

Permalink
add npm install bluebird package in image display tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
anchi1216 committed Feb 15, 2016
1 parent 07aae3b commit a4d7646
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
9 changes: 8 additions & 1 deletion content/en/tutorial/7688_imagedisplay_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,18 @@ opkg update
opkg install fswebcam
```

4. Try to capture a screenshot.
4. Install the `mcsjs` and `bluebird` package.
```
npm install mcsjs
npm install bluebird --save
```

5. Try to capture a screenshot.
```
fswebcam -i 0 -d v4l2:/dev/video0 --no-banner -p YUYV --jpeg 95 --save /tmp/test.jpg
```


Then you will see a test.jpg file in your root directory.

**Hint:** Some of you may wonder why we need to store the file to /tmp/test.jpe. The reason is bebause the limitation of the flash on the LinkIt Smart 7688 development board. If we frequently write data to the flash, it will reduce the lifetime of the flash. That is why we suggest to store in the memory where /tmp folder is under. Also, please be reminded that the flash will be reset once no power supplied.
Expand Down
8 changes: 7 additions & 1 deletion content/zh-CN/tutorial/7688_imagedisplay_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ opkg update
opkg install fswebcam
```

4. Try to capture a screenshot.
4. Install the `mcsjs` and `bluebird` package.
```
npm install mcsjs
npm install bluebird --save
```

5. Try to capture a screenshot.
```
fswebcam -i 0 -d v4l2:/dev/video0 --no-banner -p YUYV --jpeg 95 --save /tmp/test.jpg
```
Expand Down
8 changes: 7 additions & 1 deletion content/zh-TW/tutorial/7688_imagedisplay_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ opkg update
opkg install fswebcam
```

4. Try to capture a screenshot.
4. Install the `mcsjs` and `bluebird` package.
```
npm install mcsjs
npm install bluebird --save
```

5. Try to capture a screenshot.
```
fswebcam -i 0 -d v4l2:/dev/video0 --no-banner -p YUYV --jpeg 95 --save /tmp/test.jpg
```
Expand Down

0 comments on commit a4d7646

Please sign in to comment.