Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

adapter for cylon on pcduino

License

NotificationsYou must be signed in to change notification settings

alexwang2013/cylon-pcduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adapter for cylon on pcduino

Install Node.js

Make sure you have internet connection and open up the terminal on the RPi.

Installing an ARM-version of Node has become very easy:

wget http://node-arm.herokuapp.com/node_latest_armhf.deb sudo dpkg -i node_latest_armhf.deb

That's it, basically. It shouldn't take too long to download and install.

To make sure it ran correctly, run node -v. It should return the current version.

Running npm -v or npm --version still gave me the known Illegal instruction error. However, installing modules with npm install works.

install cylon-pcduino by the following command:

npm install cylon-pcduino

if you face the issue ssl error: Cert_not_yet_valid, that is because your system date of Ubuntu. change the date to the current date by usting

sudo date 120622012014.59

replace the 120622012014.59 to current time

example

'use strict';console.log("hello test");varCylon=require("cylon");Cylon.robot({connections:{pcduino:{adaptor:'pcduino'}},devices:{led:{driver:'led',pin:10}},work:function(my){every((1).second(),my.led.toggle);}}).start();

Todo

1, add pwm-pin.2, add analog pin.3, add i2c

License

Copyright (c) 2014 Zhaoqiang Wang. Licensed under the Apache 2.0 license.

About

adapter for cylon on pcduino

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp