Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepmistry committed Jul 17, 2016
1 parent 7350a5f commit df09367
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ npm install chip-io johnny-five

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

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

board.on('ready', function() {
Expand Down Expand Up @@ -54,9 +54,14 @@ See [Johnny-Five API docs](http://johnny-five.io/api/).
| XIO-P5 | 58 | Input, Output | Connected to the PCF8574A IO extender |
| XIO-P6 | 59 | Input, Output | Connected to the PCF8574A IO extender |
| XIO-P7 | 60 | Input, Output | Connected to the PCF8574A IO extender |
| STATUS | 81 | Output | Connected to status LED via GPIO2 of the AXP290 |
| BAT | 82 | Analog | Reads battery voltage from the AXP290 |
| INTTEMP | 83 | Analog | Reads internal temperature from the AXP290 |
| I2C | | I2C | Uses I2C port 1 (TWI1-SCK and TWI1-SDA) |

![C.H.I.P. pinouts](http://docs.getchip.com/images/chip_pinouts.jpg)

## Additional Features

| Type | Usage | Johnny-Five type | Notes |
| ---- | ----- | ---------------- | ----- |
| Battery Voltage | `new chipio.BatteryVoltage();` | [five.Sensor](http://johnny-five.io/api/sensor/) | Reads battery voltage from the AXP290 |
| Internal Temperature | `new chipio.InternalTemperature();` | [five.Thermometer](http://johnny-five.io/api/thermometer/) | Reads internal temperature from the AXP290 |
| Status LED | `new chipio.StatusLed;` | [five.Led](http://johnny-five.io/api/led/) | Controls status LED connected to GPIO2 on the AXP290 |

0 comments on commit df09367

Please sign in to comment.