
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Cylon.js (http://cylonjs.com) is a JavaScript framework for robotics, physical computing, and the Internet of Things (IoT) using Node.js.
This module provides an adaptor for the C.H.I.P. $9 single-board Linux computer (http://getchip.com/). It uses the Chip-IO node module (https://github.com/sandeepmistry/node-chip-io) created by @sandeepmistry, thank you!
Want to use Ruby on robots? Check out our sister project Artoo (http://artoo.io)
Want to use the Go programming language to power your robots? Check out our sister project Gobot (http://gobot.io).
Installing Cylon.js on C.H.I.P. is easy, but must be done on the C.H.I.P. itself.
$ npm install cylon cylon-chip cylon-gpio cylon-i2c
var Cylon = require("cylon");
// Initialize the robot
Cylon.robot({
connections: {
chip: { adaptor: "chip" }
},
devices: {
led: { driver: "led", pin: "XIO-PO" },
button: { driver: "button", pin: "XIO-P1" }
},
work: function(my) {
my.button.on('push', function() { my.led.toggle() });
}
}).start();
The GPIO interface for the C.H.I.P currently supports pins XIO-PO
thru XIO-P7
. You can also use the STATUS
pin for the built-in LED.
The I2C interface for the C.H.I.P currently supports I2C bus 1 using TWI1-SCK
and TWI1-SDA
only.
You will likely want to connect your development machine to your C.H.I.P. while working on your code. You can do this easily, just by connecting to the C.H.I.P. over USB. Then, you can connect to the C.H.I.P. using Network-Over-USB, and upload driver or configuration changes.
By default, the C.H.I.P's login credentials are:
root
chip
Login to the C.H.I.P., and then run the following commands:
sudo apt-get update
sudo apt-get install curl git build-essentials
Now you are ready to install Node.js itself. You can either obtain the latest release from the official Node.js downloads page or use something like Node Version Manager (nvm).
We're busy adding documentation to our web site at http://cylonjs.com/ please check there as we continue to work on Cylon.js
Thank you!
For our contribution guidelines, please go to https://github.com/hybridgroup/cylon/blob/master/CONTRIBUTING.md .
For the release history, please go to https://github.com/hybridgroup/cylon-chip/blob/master/RELEASES.md .
Copyright (c) 2016 The Hybrid Group. Licensed under the Apache 2.0 license.
FAQs
Cylon.js adaptor for the C.H.I.P. single-board computer
The npm package cylon-chip receives a total of 9 weekly downloads. As such, cylon-chip popularity was classified as not popular.
We found that cylon-chip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.