Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions data/platforms.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
"drivers": ["BLE"]
},

"CHIP": {
"slug": "chip",
"drivers": ["GPIO", "I2C"]
},

"Crazyflie": {
"slug": "crazyflie",
"drivers": ["Crazyflie"]
Expand Down
1 change: 1 addition & 0 deletions data/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"Beaglebone": "/documentation/platforms/beaglebone",
"Bebop": "/documentation/platforms/bebop",
"BLE": "/documentation/platforms/ble",
"C.H.I.P.": "/documentation/platforms/chip",
"Crazyflie": "/documentation/platforms/crazyflie",
"Digispark": "/documentation/platforms/digispark",
"Imp": "/documentation/platforms/imp",
Expand Down
36 changes: 36 additions & 0 deletions source/documentation/platforms/chip.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: C.H.I.P. with Cylon.js
author: The Hybrid Group
page_title: Platforms - C.H.I.P.
page_subtitle: Cylon has an extensible system for connecting to hardware devices.
page_title_docs: C.H.I.P.
page_subtitle_docs: "<a href='https://github.com/hybridgroup/cylon-chip' target='_blank' class='repository'>Repository</a>|<a class+'issues' href='https://github.com/hybridgroup/cylon-chip/issues' target='_blank'> Issues</a>"
layout: documentation
page_title_show: true
subnav_platform: true
active_menu_platforms: true
subnavjs: true
---
%section.intro
= image_tag "/images/devices/chip.jpg", class: "display"
.info-intro
%h4.subtitle= current_page.data.page_subtitle_docs
:markdown
The CHIP is a small, inexpensive ARM based single board computer,
with many different IO interfaces available on the pin headers.

For more info about the CHIP platform click [here](http://www.nextthing.co/pages/chip).

.clear

= partial "documentation/platforms/partials/chip"

%section.drivers#Drivers
:markdown
## Drivers

All Cylon digital GPIO and i2c drivers listed below should work with the C.H.I.P.:

.hardware
.devices
= partial "/partials/devices_for_platform", locals: { platform: "CHIP" }
55 changes: 55 additions & 0 deletions source/documentation/platforms/partials/_chip.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
%section.how-to
:markdown
## How to Install

Install the module with:

$ npm install cylon cylon-chip


## How to Use

:::javascript
"use strict";

var Cylon = require("cylon");

Cylon.robot({
connections: {
beaglebone: { adaptor: "chip" }
},

devices: {
led: { driver: "led", pin: "" },
button: { driver: "button", pin: "" }
},

work: function(my) {
my.button.on('push', function() {my.led.toggle()});
}
}).start();

## How to Connect

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.

### OSX

Info goes here

### Linux

Info goes here

### Windows

Info goes here

### Credentials

By default, the C.H.I.P's login credentials are:

- user: root
- pass: chip
Binary file added source/images/devices/chip.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.