Socket
Socket
Sign inDemoInstall

chip-io

Package Overview
Dependencies
24
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chip-io

Johnny-Five IO Plugin for the Next Thing Co. C.H.I.P.


Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

chip-io

logo

Johnny-Five IO Plugin for the Next Thing Co. C.H.I.P.

Prerequisites

  • Next Thing Co. C.H.I.P. board
  • Node.js installed
    1. Install curl: sudo apt-get install curl
    2. Follow Debian section of NodeSource installations instructions
  • Build essential installed: sudo apt-get install build-essential
  • Add chip user to i2c group: sudo adduser chip i2c

Getting Started

npm install chip-io johnny-five

Boilerplate Program

var five = require('johnny-five');
var ChipIO = require('chip-io');

var board = new five.Board({
  io: new ChipIO()
});

board.on('ready', function() {
  // do Johnny-Five stuff
});

Examples

See examples folder as well as Johnny-Five examples.

API

See Johnny-Five API docs.

Pin Guide

Johnny-Five Compatible NameNumberSupported ModesInfo
XIO-PO53Input, OutputConnected to the PCF8574A IO extender
XIO-P154Input, OutputConnected to the PCF8574A IO extender
XIO-P255Input, OutputConnected to the PCF8574A IO extender
XIO-P356Input, OutputConnected to the PCF8574A IO extender
XIO-P457Input, OutputConnected to the PCF8574A IO extender
XIO-P558Input, OutputConnected to the PCF8574A IO extender
XIO-P659Input, OutputConnected to the PCF8574A IO extender
XIO-P760Input, OutputConnected to the PCF8574A IO extender
STATUS81OutputConnected to status LED via GPIO2 of the AXP290
BAT82AnalogReads battery voltage from the AXP290
INTTEMP83AnalogReads internal temperature from the AXP290
I2CI2CUses I2C port 1 (TWI1-SCK and TWI1-SDA)

C.H.I.P. pinouts

Keywords

FAQs

Last updated on 16 May 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc