Skip to content

Commit

Permalink
Barometer: examples cleanup, external links
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Jun 12, 2015
1 parent e24beb1 commit 777844e
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 17 deletions.
12 changes: 10 additions & 2 deletions docs/barometer-BMP180.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ var board = new five.Board();

board.on("ready", function() {
var barometer = new five.Barometer({
controller: "BMP180",
freq: 250
controller: "BMP180"
});

barometer.on("change", function() {
Expand All @@ -54,6 +53,15 @@ board.on("ready", function() {




## Learn More

- [BMP180 Barometric Pressure/Temperature/Altitude Sensor](https://www.adafruit.com/products/1603)

- [SparkFun Barometric Pressure Sensor Breakout - BMP180](https://www.sparkfun.com/products/11824)

- [Grove - Barometer Sensor(BMP180)](http://www.seeedstudio.com/depot/Grove-Barometer-SensorBMP180-p-1840.html)

 

<!--remove-start-->
Expand Down
5 changes: 5 additions & 0 deletions docs/barometer-mpl115a2.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ board.on("ready", function() {




## Learn More

- [MPL115A2 - I2C Barometric Pressure/Temperature Sensor](https://www.adafruit.com/product/992)

&nbsp;

<!--remove-start-->
Expand Down
12 changes: 10 additions & 2 deletions docs/multi-bmp180.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ var board = new five.Board();

board.on("ready", function() {
var multi = new five.Multi({
controller: "BMP180",
freq: 250
controller: "BMP180"
});

multi.on("change", function() {
Expand All @@ -60,6 +59,15 @@ board.on("ready", function() {




## Learn More

- [BMP180 Barometric Pressure/Temperature/Altitude Sensor](https://www.adafruit.com/products/1603)

- [SparkFun Barometric Pressure Sensor Breakout - BMP180](https://www.sparkfun.com/products/11824)

- [Grove - Barometer Sensor(BMP180)](http://www.seeedstudio.com/depot/Grove-Barometer-SensorBMP180-p-1840.html)

&nbsp;

<!--remove-start-->
Expand Down
4 changes: 2 additions & 2 deletions docs/multi-mpl115a2.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ board.on("ready", function() {
});
});

```


```







## Learn More

## Additional Notes
- [MPL115A2 - I2C Barometric Pressure/Temperature Sensor](https://www.adafruit.com/product/992)

&nbsp;
Expand Down
9 changes: 9 additions & 0 deletions docs/temperature-BMP180.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ board.on("ready", function() {




## Learn More

- [BMP180 Barometric Pressure/Temperature/Altitude Sensor](https://www.adafruit.com/products/1603)

- [SparkFun Barometric Pressure Sensor Breakout - BMP180](https://www.sparkfun.com/products/11824)

- [Grove - Barometer Sensor(BMP180)](http://www.seeedstudio.com/depot/Grove-Barometer-SensorBMP180-p-1840.html)

&nbsp;

<!--remove-start-->
Expand Down
5 changes: 5 additions & 0 deletions docs/temperature-mpl115a2.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ board.on("ready", function() {
## Additional Notes
- [MPL115A2 - I2C Barometric Pressure/Temperature Sensor](https://www.adafruit.com/product/992)


## Learn More

- [MPL115A2 - I2C Barometric Pressure/Temperature Sensor](https://www.adafruit.com/product/992)

&nbsp;

<!--remove-start-->
Expand Down
3 changes: 1 addition & 2 deletions eg/barometer-BMP180.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ var board = new five.Board();

board.on("ready", function() {
var barometer = new five.Barometer({
controller: "BMP180",
freq: 250
controller: "BMP180"
});

barometer.on("change", function() {
Expand Down
3 changes: 1 addition & 2 deletions eg/multi-bmp180.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ var board = new five.Board();

board.on("ready", function() {
var multi = new five.Multi({
controller: "BMP180",
freq: 250
controller: "BMP180"
});

multi.on("change", function() {
Expand Down
5 changes: 0 additions & 5 deletions eg/multi-mpl115a2.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,3 @@ board.on("ready", function() {
console.log("--------------------------------------");
});
});


// @markdown
// - [MPL115A2 - I2C Barometric Pressure/Temperature Sensor](https://www.adafruit.com/product/992)
// @markdown
28 changes: 26 additions & 2 deletions tpl/programs.json
Original file line number Diff line number Diff line change
Expand Up @@ -683,11 +683,19 @@
},
{
"file": "multi-mpl115a2.js",
"title": "Multi - MPL115A2"
"title": "Multi - MPL115A2",
"externals": [
{ "title": "MPL115A2 - I2C Barometric Pressure/Temperature Sensor", "href": "https://www.adafruit.com/product/992"}
]
},
{
"file": "multi-bmp180.js",
"title": "Multi - BMP180"
"title": "Multi - BMP180",
"externals": [
{ "title": "BMP180 Barometric Pressure/Temperature/Altitude Sensor", "href": "https://www.adafruit.com/products/1603"},
{ "title": "SparkFun Barometric Pressure Sensor Breakout - BMP180", "href": "https://www.sparkfun.com/products/11824"},
{ "title": "Grove - Barometer Sensor(BMP180)", "href": "http://www.seeedstudio.com/depot/Grove-Barometer-SensorBMP180-p-1840.html"}
]
}
]
},
Expand Down Expand Up @@ -776,27 +784,43 @@
"title": "Barometer - MPL115A2",
"breadboards": [
{"name": "multi-mpl115a2", "title": "MPL115A2"}
],
"externals": [
{ "title": "MPL115A2 - I2C Barometric Pressure/Temperature Sensor", "href": "https://www.adafruit.com/product/992"}
]
},
{
"file": "temperature-mpl115a2.js",
"title": "Temperature - MPL115A2",
"breadboards": [
{"name": "multi-mpl115a2", "title": "MPL115A2"}
],
"externals": [
{ "title": "MPL115A2 - I2C Barometric Pressure/Temperature Sensor", "href": "https://www.adafruit.com/product/992"}
]
},
{
"file": "barometer-BMP180.js",
"title": "Barometer - BMP180",
"breadboards": [
{"name": "multi-bmp180", "title": "BMP180"}
],
"externals": [
{ "title": "BMP180 Barometric Pressure/Temperature/Altitude Sensor", "href": "https://www.adafruit.com/products/1603"},
{ "title": "SparkFun Barometric Pressure Sensor Breakout - BMP180", "href": "https://www.sparkfun.com/products/11824"},
{ "title": "Grove - Barometer Sensor(BMP180)", "href": "http://www.seeedstudio.com/depot/Grove-Barometer-SensorBMP180-p-1840.html"}
]
},
{
"file": "temperature-BMP180.js",
"title": "Temperature - BMP180",
"breadboards": [
{"name": "multi-bmp180", "title": "BMP180"}
],
"externals": [
{ "title": "BMP180 Barometric Pressure/Temperature/Altitude Sensor", "href": "https://www.adafruit.com/products/1603"},
{ "title": "SparkFun Barometric Pressure Sensor Breakout - BMP180", "href": "https://www.sparkfun.com/products/11824"},
{ "title": "Grove - Barometer Sensor(BMP180)", "href": "http://www.seeedstudio.com/depot/Grove-Barometer-SensorBMP180-p-1840.html"}
]
}
]
Expand Down

0 comments on commit 777844e

Please sign in to comment.