Skip to content

Commit

Permalink
Merge pull request rwaldron#839 from pierceray/programsjson
Browse files Browse the repository at this point in the history
updated TinkerKit examples to use programs.json
  • Loading branch information
rwaldron committed Jun 26, 2015
2 parents 8e061c1 + 045678a commit e043f3d
Show file tree
Hide file tree
Showing 21 changed files with 95 additions and 75 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ To interactively navigate the examples, visit the [Johnny-Five examples](http://
- [TinkerKit - Accelerometer](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-accelerometer.md)
- [TinkerKit - Blink](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-blink.md)
- [TinkerKit - Button](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-button.md)
- [TinkerKit - Continuous servo](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-continuous-servo.md)
- [TinkerKit - Combo](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-combo.md)
- [TinkerKit - Continuous servo](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-continuous-servo.md)
- [TinkerKit - Gyro](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-gyroscope.md)
- [TinkerKit - Joystick](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-joystick.md)
- [TinkerKit - Linear potentiometer](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-linear-pot.md)
Expand Down
5 changes: 5 additions & 0 deletions docs/tinkerkit-accelerometer.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ board.on("ready", function() {




## Learn More

- [TinkerKit Dual Axis Accelerometer](http://tinkerkit.tihhs.nl/accelerometer/)

 

<!--remove-start-->
Expand Down
6 changes: 4 additions & 2 deletions docs/tinkerkit-blink.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ new five.Board().on("ready", function() {
new five.Led("O0").strobe(250);
});


```


Expand All @@ -42,8 +41,11 @@ new five.Board().on("ready", function() {



## Additional Notes

## Learn More

- [TinkerKit Led](http://tinkerkit.tihhs.nl/led-red-10mm/)

- [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)

&nbsp;
Expand Down
6 changes: 4 additions & 2 deletions docs/tinkerkit-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ new five.Board().on("ready", function() {
});
});


```


Expand All @@ -51,8 +50,11 @@ new five.Board().on("ready", function() {



## Additional Notes

## Learn More

- [TinkerKit Button](http://tinkerkit.tihhs.nl/button/)

- [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)

&nbsp;
Expand Down
7 changes: 5 additions & 2 deletions docs/tinkerkit-continuous-servo.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ new five.Board().on("ready", function() {
});
});


```


Expand All @@ -49,9 +48,13 @@ new five.Board().on("ready", function() {



## Additional Notes

## Learn More

- [TinkerKit Servo](http://tinkerkit.tihhs.nl/servo/)

- [TinkerKit Linear Potentiometer](http://tinkerkit.tihhs.nl/linear-pot/)

- [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)

&nbsp;
Expand Down
6 changes: 4 additions & 2 deletions docs/tinkerkit-joystick.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ new five.Board().on("ready", function() {
});
});


```


Expand All @@ -75,8 +74,11 @@ new five.Board().on("ready", function() {



## Additional Notes

## Learn More

- [TinkerKit JoyStick](http://tinkerkit.tihhs.nl/joystick/)

- [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)

&nbsp;
Expand Down
6 changes: 4 additions & 2 deletions docs/tinkerkit-linear-pot.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ new five.Board().on("ready", function() {
});
});


```


Expand All @@ -44,8 +43,11 @@ new five.Board().on("ready", function() {



## Additional Notes

## Learn More

- [TinkerKit Linear Potentiometer](http://tinkerkit.tihhs.nl/linear-pot/)

- [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)

&nbsp;
Expand Down
9 changes: 6 additions & 3 deletions docs/tinkerkit-rotary.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ new five.Board().on("ready", function() {
});
});


```


Expand All @@ -46,9 +45,13 @@ new five.Board().on("ready", function() {



## Additional Notes

## Learn More

- [TinkerKit Servo](http://tinkerkit.tihhs.nl/servo/)
- [TinkerKit Linear Potentiometer](http://tinkerkit.tihhs.nl/linear-pot/)

- [TinkerKit Rotary Potentiometer](http://tinkerkit.tihhs.nl/rotary-pot/)

- [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)

&nbsp;
Expand Down
6 changes: 4 additions & 2 deletions docs/tinkerkit-thermistor.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ new five.Board().on("ready", function() {
});
});


```


Expand All @@ -45,8 +44,11 @@ new five.Board().on("ready", function() {



## Additional Notes

## Learn More

- [TinkerKit Thermistor](http://tinkerkit.tihhs.nl/thermistor/)

- [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)

&nbsp;
Expand Down
9 changes: 6 additions & 3 deletions docs/tinkerkit-tilt.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ new five.Board().on("ready", function() {
});
});


```


Expand All @@ -46,9 +45,13 @@ new five.Board().on("ready", function() {



## Additional Notes

## Learn More

- [TinkerKit Servo](http://tinkerkit.tihhs.nl/servo/)
- [TinkerKit Linear Potentiometer](http://tinkerkit.tihhs.nl/linear-pot/)

- [TinkerKit Tilt](http://tinkerkit.tihhs.nl/tilt-sensor/)

- [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)

&nbsp;
Expand Down
6 changes: 4 additions & 2 deletions docs/tinkerkit-touch.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ new five.Board().on("ready", function() {
});
});


```


Expand All @@ -54,8 +53,11 @@ new five.Board().on("ready", function() {



## Additional Notes

## Learn More

- [TinkerKit Touch](http://tinkerkit.tihhs.nl/touch/)

- [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)

&nbsp;
Expand Down
5 changes: 0 additions & 5 deletions eg/tinkerkit-blink.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@ var five = require("../lib/johnny-five.js");
new five.Board().on("ready", function() {
new five.Led("O0").strobe(250);
});

// @markdown
// - [TinkerKit Led](http://tinkerkit.tihhs.nl/led-red-10mm/)
// - [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)
// @markdown
5 changes: 0 additions & 5 deletions eg/tinkerkit-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ new five.Board().on("ready", function() {
});
});
});

// @markdown
// - [TinkerKit Button](http://tinkerkit.tihhs.nl/button/)
// - [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)
// @markdown
6 changes: 0 additions & 6 deletions eg/tinkerkit-continuous-servo.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ new five.Board().on("ready", function() {
servo.cw(this.value);
});
});

// @markdown
// - [TinkerKit Servo](http://tinkerkit.tihhs.nl/servo/)
// - [TinkerKit Linear Potentiometer](http://tinkerkit.tihhs.nl/linear-pot/)
// - [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)
// @markdown
5 changes: 0 additions & 5 deletions eg/tinkerkit-joystick.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,3 @@ new five.Board().on("ready", function() {
});
});
});

// @markdown
// - [TinkerKit JoyStick](http://tinkerkit.tihhs.nl/joystick/)
// - [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)
// @markdown
5 changes: 0 additions & 5 deletions eg/tinkerkit-linear-pot.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,3 @@ new five.Board().on("ready", function() {
console.log(Math.round(this.value));
});
});

// @markdown
// - [TinkerKit Linear Potentiometer](http://tinkerkit.tihhs.nl/linear-pot/)
// - [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)
// @markdown
6 changes: 0 additions & 6 deletions eg/tinkerkit-rotary.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@ new five.Board().on("ready", function() {
servo.to(this.value);
});
});

// @markdown
// - [TinkerKit Servo](http://tinkerkit.tihhs.nl/servo/)
// - [TinkerKit Linear Potentiometer](http://tinkerkit.tihhs.nl/linear-pot/)
// - [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)
// @markdown
5 changes: 0 additions & 5 deletions eg/tinkerkit-thermistor.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ new five.Board().on("ready", function() {
console.log("C: ", this.celsius);
});
});

// @markdown
// - [TinkerKit Thermistor](http://tinkerkit.tihhs.nl/thermistor/)
// - [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)
// @markdown
6 changes: 0 additions & 6 deletions eg/tinkerkit-tilt.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@ new five.Board().on("ready", function() {
console.log(this.boolean);
});
});

// @markdown
// - [TinkerKit Servo](http://tinkerkit.tihhs.nl/servo/)
// - [TinkerKit Linear Potentiometer](http://tinkerkit.tihhs.nl/linear-pot/)
// - [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)
// @markdown
5 changes: 0 additions & 5 deletions eg/tinkerkit-touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,3 @@ new five.Board().on("ready", function() {
});
});
});

// @markdown
// - [TinkerKit Touch](http://tinkerkit.tihhs.nl/touch/)
// - [TinkerKit Shield](http://tinkerkit.tihhs.nl/shield/)
// @markdown
Loading

0 comments on commit e043f3d

Please sign in to comment.