-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #723 from Resseguie/io-plugin-eg
Add io-plugin examples
- Loading branch information
Showing
31 changed files
with
909 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<!--remove-start--> | ||
|
||
# Led Blink on Intel Edison Arduino Board | ||
|
||
|
||
Example using Johnny-Five + Edison-IO to directly control an Intel Edison | ||
|
||
|
||
Run with: | ||
```bash | ||
node eg/edison-io-arduino.js | ||
``` | ||
|
||
<!--remove-end--> | ||
|
||
```javascript | ||
var five = require("johnny-five"); | ||
var Edison = require("edison-io"); | ||
var board = new five.Board({ | ||
io: new Edison() | ||
}); | ||
|
||
board.on("ready", function() { | ||
var led = new five.Led(13); | ||
led.blink(); | ||
}); | ||
|
||
|
||
``` | ||
|
||
|
||
## Illustrations / Photos | ||
|
||
|
||
### Intel Edison Arduino Board | ||
|
||
|
||
|
||
![docs/images/edison-arduino-board.jpg](images/edison-arduino-board.jpg) | ||
|
||
### LED on pin 13 | ||
|
||
|
||
|
||
![docs/breadboard/led-13-edison-arduinoboard.png](breadboard/led-13-edison-arduinoboard.png)<br> | ||
|
||
Fritzing diagram: [docs/breadboard/led-13-edison-arduinoboard.fzz](breadboard/led-13-edison-arduinoboard.fzz) | ||
|
||
| ||
|
||
|
||
|
||
|
||
|
||
## Additional Notes | ||
|
||
In order to use the Edison-IO library, you will need to flash the Intel IoTDevKit Image | ||
on your Edison. Once the environment is created, install Johnny-Five and Edison-IO. | ||
|
||
```sh | ||
npm install johnny-five edison-io | ||
``` | ||
|
||
|
||
|
||
|
||
## Learn More | ||
|
||
- [edison-io on GitHub](https://github.com/rwaldron/edison-io/) | ||
|
||
| ||
|
||
<!--remove-start--> | ||
|
||
## License | ||
Copyright (c) 2012, 2013, 2014 Rick Waldron <waldron.rick@gmail.com> | ||
Licensed under the MIT license. | ||
Copyright (c) 2014, 2015 The Johnny-Five Contributors | ||
Licensed under the MIT license. | ||
|
||
<!--remove-end--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<!--remove-start--> | ||
|
||
# Led Blink on Intel Edison Mini Board | ||
|
||
|
||
Example using Johnny-Five + Edison-IO to directly control an Intel Edison | ||
|
||
|
||
Run with: | ||
```bash | ||
node eg/edison-io-miniboard.js | ||
``` | ||
|
||
<!--remove-end--> | ||
|
||
```javascript | ||
var five = require("johnny-five"); | ||
var Edison = require("edison-io"); | ||
var board = new five.Board({ | ||
io: new Edison() | ||
}); | ||
|
||
board.on("ready", function() { | ||
var led = new five.Led(1); | ||
led.blink(); | ||
}); | ||
|
||
|
||
``` | ||
|
||
|
||
## Illustrations / Photos | ||
|
||
|
||
### Intel Edison Mini Board | ||
|
||
|
||
|
||
![docs/images/edison-mini-board.jpg](images/edison-mini-board.jpg) | ||
|
||
### LED on pin 1 | ||
|
||
|
||
|
||
![docs/breadboard/led-1-edison-miniboard.png](breadboard/led-1-edison-miniboard.png)<br> | ||
|
||
Fritzing diagram: [docs/breadboard/led-1-edison-miniboard.fzz](breadboard/led-1-edison-miniboard.fzz) | ||
|
||
| ||
|
||
|
||
|
||
|
||
|
||
## Additional Notes | ||
|
||
In order to use the Edison-IO library, you will need to flash the Intel IoTDevKit Image | ||
on your Edison. Once the environment is created, install Johnny-Five and Edison-IO. | ||
|
||
```sh | ||
npm install johnny-five edison-io | ||
``` | ||
|
||
|
||
|
||
|
||
## Learn More | ||
|
||
- [edison-io on GitHub](https://github.com/rwaldron/edison-io/) | ||
|
||
| ||
|
||
<!--remove-start--> | ||
|
||
## License | ||
Copyright (c) 2012, 2013, 2014 Rick Waldron <waldron.rick@gmail.com> | ||
Licensed under the MIT license. | ||
Copyright (c) 2014, 2015 The Johnny-Five Contributors | ||
Licensed under the MIT license. | ||
|
||
<!--remove-end--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<!--remove-start--> | ||
|
||
# Led Blink on Intel Galileo Gen 2 | ||
|
||
|
||
Example using Johnny-Five + Galileo-IO to directly control an Intel Galileo Gen 2 | ||
|
||
|
||
Run with: | ||
```bash | ||
node eg/galileo-io.js | ||
``` | ||
|
||
<!--remove-end--> | ||
|
||
```javascript | ||
var five = require("johnny-five"); | ||
var Galileo = require("galileo-io"); | ||
var board = new five.Board({ | ||
io: new Galileo() | ||
}); | ||
|
||
board.on("ready", function() { | ||
var led = new five.Led(13); | ||
led.blink(); | ||
}); | ||
|
||
|
||
``` | ||
|
||
|
||
## Illustrations / Photos | ||
|
||
|
||
### Galileo Gen 2 | ||
|
||
|
||
|
||
![docs/images/galileo-gen2.jpg](images/galileo-gen2.jpg) | ||
|
||
### LED on pin 13 | ||
|
||
|
||
|
||
![docs/breadboard/led-13-galileo.png](breadboard/led-13-galileo.png)<br> | ||
|
||
Fritzing diagram: [docs/breadboard/led-13-galileo.fzz](breadboard/led-13-galileo.fzz) | ||
|
||
| ||
|
||
|
||
|
||
|
||
|
||
## Additional Notes | ||
|
||
In order to use the Galileo-IO library, you will need to flash the Intel IoTDevKit Image | ||
on your Galileo Gen 2. Once the environment is created, install Johnny-Five and Galileo-IO. | ||
|
||
```sh | ||
npm install johnny-five galileo-io | ||
``` | ||
|
||
|
||
|
||
|
||
## Learn More | ||
|
||
- [galileo-io on GitHub](https://github.com/rwaldron/galileo-io/) | ||
|
||
| ||
|
||
<!--remove-start--> | ||
|
||
## License | ||
Copyright (c) 2012, 2013, 2014 Rick Waldron <waldron.rick@gmail.com> | ||
Licensed under the MIT license. | ||
Copyright (c) 2014, 2015 The Johnny-Five Contributors | ||
Licensed under the MIT license. | ||
|
||
<!--remove-end--> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<!--remove-start--> | ||
|
||
# Led Blink on Electric Imp | ||
|
||
|
||
Example using Johnny-Five + imp-io to control an Electric Imp. | ||
|
||
|
||
Run with: | ||
```bash | ||
node eg/imp-io.js | ||
``` | ||
|
||
<!--remove-end--> | ||
|
||
```javascript | ||
var five = require("johnny-five"); | ||
var Imp = require("imp-io"); | ||
|
||
var board = new five.Board({ | ||
io: new Imp({ | ||
agent: process.env.IMP_AGENT_ID | ||
}) | ||
}); | ||
|
||
board.on("ready", function() { | ||
var led = new five.Led(9); | ||
led.blink(); | ||
}); | ||
|
||
``` | ||
|
||
|
||
## Illustrations / Photos | ||
|
||
|
||
### Electric Imp | ||
|
||
|
||
|
||
![docs/images/imp.jpg](images/imp.jpg) | ||
|
||
### LED on pin 9 | ||
|
||
|
||
|
||
![docs/breadboard/imp-led.png](breadboard/imp-led.png)<br> | ||
|
||
Fritzing diagram: [docs/breadboard/imp-led.fzz](breadboard/imp-led.fzz) | ||
|
||
| ||
|
||
|
||
|
||
|
||
|
||
## Additional Notes | ||
|
||
To communicate with an Electric Imp using Johnny-Five w/ Imp-IO, | ||
you will need to upload the special | ||
[Tyrion](https://github.com/rwaldron/tyrion) | ||
**[agent](https://github.com/rwaldron/tyrion/blob/master/agent.nut)** and | ||
**[device](https://github.com/rwaldron/tyrion/blob/master/device.nut)** | ||
firmware through Electric Imp's [IDE](https://ide.electricimp.com/login). | ||
We recommend you review | ||
[Electric Imp's Getting Started](http://www.electricimp.com/docs/gettingstarted/) | ||
before continuing. | ||
|
||
Store your agent ID in a dot file so it can be accessed as a property of `process.env`. | ||
Create a file in your home directory called `.imprc` that contains: | ||
|
||
```sh | ||
export IMP_AGENT_ID="your agent id" | ||
``` | ||
|
||
Then add the following to your dot-rc file of choice: | ||
|
||
```sh | ||
source ~/.imprc | ||
``` | ||
|
||
|
||
|
||
## Learn More | ||
|
||
- [imp-io on GitHub](https://github.com/rwaldron/imp-io) | ||
|
||
| ||
|
||
<!--remove-start--> | ||
|
||
## License | ||
Copyright (c) 2012, 2013, 2014 Rick Waldron <waldron.rick@gmail.com> | ||
Licensed under the MIT license. | ||
Copyright (c) 2014, 2015 The Johnny-Five Contributors | ||
Licensed under the MIT license. | ||
|
||
<!--remove-end--> |
Oops, something went wrong.