Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix plugin template

  • Loading branch information...
commit 5f59204ada4538e15fee02ed4391dc67dd12bea3 1 parent 3ee0f52
@rwaldron authored
Showing with 6 additions and 8 deletions.
  1. +2 −0  README.md
  2. +2 −4 docs/plugin.md
  3. +2 −4 eg/plugin.js
View
2  README.md
@@ -208,6 +208,8 @@ To interactively navigate the examples, visit the [Johnny-Five examples](http://
- [LED - Matrix Demo](https://github.com/rwaldron/johnny-five/blob/master/docs/led-matrix-tutorial.md)
- [LED - Matrix HT16K33](https://github.com/rwaldron/johnny-five/blob/master/docs/led-matrix-HT16K33.md)
- [LED - Matrix HT16K33 16x8](https://github.com/rwaldron/johnny-five/blob/master/docs/led-matrix-HT16K33-16x8.md)
+- [LED - Draw Matrix Characters Demo](https://github.com/rwaldron/johnny-five/blob/master/docs/led-chars-demo.md)
+- [LED - Enumerate Matrix Characters & Symbols](https://github.com/rwaldron/johnny-five/blob/master/docs/led-enumeratechars.md)
### Servo
- [Servo](https://github.com/rwaldron/johnny-five/blob/master/docs/servo.md)
View
6 docs/plugin.md
@@ -18,8 +18,6 @@ node eg/plugin.js
```javascript
-var Board = require("board");
-
module.exports = function(five) {
return (function() {
@@ -38,8 +36,8 @@ module.exports = function(five) {
// to `this.pin = value`
// - Calls an IO Plugin's `normalize` method
//
- Board.Component.call(
- this, opts = Board.Options(opts)
+ five.Board.Component.call(
+ this, opts = five.Board.Options(opts)
);
View
6 eg/plugin.js
@@ -1,5 +1,3 @@
-var Board = require("../lib/board.js");
-
module.exports = function(five) {
return (function() {
@@ -18,8 +16,8 @@ module.exports = function(five) {
// to `this.pin = value`
// - Calls an IO Plugin's `normalize` method
//
- Board.Component.call(
- this, opts = Board.Options(opts)
+ five.Board.Component.call(
+ this, opts = five.Board.Options(opts)
);
Please sign in to comment.
Something went wrong with that request. Please try again.