Permalink
Browse files

Example program updates

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information...
rwaldron committed Aug 15, 2012
1 parent 308cc67 commit 5e929ce3709c989e5cc41d37396b92d8381fa3df
Showing with 415 additions and 136 deletions.
  1. +6 −0 docs/accelerometer-pan-tilt.md
  2. +6 −0 docs/accelerometer.md
  3. +6 −0 docs/board-multi.md
  4. +6 −0 docs/board.md
  5. +6 −0 docs/boe-test-servos.md
  6. +6 −0 docs/bug.md
  7. +6 −0 docs/button-bumper.md
  8. +6 −0 docs/button-options.md
  9. +6 −0 docs/button.md
  10. +6 −0 docs/claw.md
  11. +6 −0 docs/continuous-clock.md
  12. +6 −0 docs/continuous.md
  13. +0 −135 docs/hmc5883l.md
  14. +6 −0 docs/ir-motion.md
  15. +6 −0 docs/ir-proximity.md
  16. +6 −0 docs/ir-reflect.md
  17. +6 −0 docs/joystick-claw.md
  18. +6 −0 docs/joystick-laser.md
  19. +6 −0 docs/joystick-motor-led.md
  20. +6 −0 docs/joystick.md
  21. +6 −0 docs/laser.md
  22. +9 −0 docs/lcd-enumeratechars.md
  23. +9 −0 docs/lcd-runner-20x4.md
  24. +9 −0 docs/lcd-runner.md
  25. +10 −0 docs/lcd.md
  26. +6 −0 docs/led-fade.md
  27. +6 −0 docs/led-on-off.md
  28. +6 −0 docs/led-pulse.md
  29. +6 −0 docs/led-rgb.md
  30. +6 −0 docs/led-strobe.md
  31. +6 −0 docs/magnetometer-log.md
  32. +6 −0 docs/magnetometer-north.md
  33. +6 −0 docs/magnetometer.md
  34. +6 −0 docs/motor.md
  35. +6 −0 docs/navigator-joystick.md
  36. +6 −0 docs/navigator-original.md
  37. +6 −0 docs/nodeconf-compass.md
  38. +6 −0 docs/nodeconf-navigator.md
  39. +6 −0 docs/nodeconf-radar.md
  40. +6 −0 docs/nodeconf-slider.md
  41. +6 −0 docs/nunchuk.md
  42. +6 −0 docs/piezo.md
  43. +6 −0 docs/ping.md
  44. +6 −0 docs/potentiometer.md
  45. +6 −0 docs/proximity.md
  46. +6 −0 docs/radar-client.md
  47. +6 −0 docs/radar.md
  48. +6 −0 docs/repl.md
  49. +6 −0 docs/sensor-fsr-servo.md
  50. +6 −0 docs/sensor-fsr.md
  51. +6 −0 docs/sensor-ir-led-receiver.md
  52. +6 −0 docs/sensor-slider.md
  53. +6 −0 docs/sensor.md
  54. +6 −0 docs/servo-array.md
  55. +6 −0 docs/servo-diagnostic.md
  56. +6 −0 docs/servo-digital.md
  57. +6 −0 docs/servo-dual.md
  58. +6 −0 docs/servo-tutorial.md
  59. +6 −0 docs/servo.md
  60. +6 −0 docs/shiftregister.md
  61. +6 −0 docs/slider-log.md
  62. +6 −0 docs/slider-pan.md
  63. +6 −0 docs/slider-servo-control.md
  64. +6 −0 docs/sonar-scan.md
  65. +6 −0 docs/sonar.md
  66. +4 −0 eg/lcd-enumeratechars.js
  67. +4 −0 eg/lcd-runner-20x4.js
  68. +4 −0 eg/lcd-runner.js
  69. +5 −0 eg/lcd.js
  70. +1 −1 lib/button.js
@@ -56,6 +56,12 @@ board.on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -60,6 +60,12 @@ board.on("ready", function() {
[accelerometer.fzz](https://github.com/rwldrn/johnny-five/blob/master/docs/breadboard/accelerometer.fzz)
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -39,6 +39,12 @@ boards.forEach(function( board ) {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -48,6 +48,12 @@ board.on("ready", function() {
[board.fzz](https://github.com/rwldrn/johnny-five/blob/master/docs/breadboard/board.fzz)
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -259,6 +259,12 @@ board.on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -204,6 +204,12 @@ five.Board().on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -35,6 +35,12 @@ five.Board().on("ready", function() {
[button-bumper.fzz](https://github.com/rwldrn/johnny-five/blob/master/docs/breadboard/button-bumper.fzz)
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -57,6 +57,12 @@ board.on("ready", function() {
[button-options.fzz](https://github.com/rwldrn/johnny-five/blob/master/docs/breadboard/button-options.fzz)
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -55,6 +55,12 @@ board.on("ready", function() {
[button.fzz](https://github.com/rwldrn/johnny-five/blob/master/docs/breadboard/button.fzz)
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -52,6 +52,12 @@ board.on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -57,6 +57,12 @@ board.on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -48,6 +48,12 @@ board.on("ready", function() {
[continuous.fzz](https://github.com/rwldrn/johnny-five/blob/master/docs/breadboard/continuous.fzz)
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -1,135 +0,0 @@
-# Hmc5883l
-
-Run with:
-```bash
-node eg/hmc5883l.js
-```
-
-
-```javascript
-var Board = require("firmata").Board,
- address, board;
-
-address = 0x1E;
-
-board = new Board("/dev/tty.usbmodem411", function() {
-
- var x, y, z, interval;
-
- board.sendI2CConfig();
- board.on("string",function( string ) {
- console.log("string", string);
- });
-
- // Continuous measurement mode
- board.sendI2CWriteRequest( address, [ 0x02, 0x00 ] );
-
- // Set pointer to XMSB
- board.sendI2CWriteRequest( address, [ 0x03 ] );
-
- // initial interval wait time is 500ms
- interval = 500;
-
- setInterval(function() {
-
-
- // Read 6 bytes from the register
- board.sendI2CReadRequest( address, 6, function( data ) {
-
- // The HMC5883L returns data in this order:
- //
- // XX ZZ YY
- //
-
- // x, y, z are initialized at top of board ready callback
-
-
- // // XX 0, 1
- // x = data[0] | data[1] & 0xFF;
-
- // // ZZ 2, 3
- // z = data[2] | data[3] & 0xFF;
-
- // // YY 4, 5
- // y = data[4] | data[5] & 0xFF;
-
- // XX 0, 1
- x = ( data[0] << 8 ) | data[1];
-
- // ZZ 2, 3
- z = ( data[2] << 8 ) | data[3];
-
- // YY 4, 5
- y = ( data[4] << 8 ) | data[5];
-
-
- console.log( x, y, z );
- });
-
- }, interval );
-});
-
-/**
-
- Example run:
-
- 194 3 65330
- 195 1 65330
- 195 3 65330
- 195 0 65330
- 195 2 65330
- 195 5 65331
- 197 7 65333
- 191 48 65347
- 155 101 65355
- 140 111 65351
- 113 125 65350
- 91 135 65351
- 96 131 65348
- 117 121 65347
- 141 104 65346
- 174 76 65346
- 207 26 65348
- 214 65527 65352
- 206 65488 65347
- 201 65478 65342
- 201 65479 65342
- 193 65467 65333
- 208 7 65357
- 176 75 65351
- 142 101 65348
- 134 103 65346
- 134 102 65346
-
-
- */
-
-```
-
-## Breadboard
-
-
-
-
-## Documentation
-
-_(Nothing yet)_
-
-
-
-
-
-
-
-
-
-## Contributing
-All contributions must adhere to the the [Idiomatic.js Style Guide](https://github.com/rwldrn/idiomatic.js),
-by maintaining the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt).
-
-## Release History
-_(Nothing yet)_
-
-## License
-Copyright (c) 2012 Rick Waldron <waldron.rick@gmail.com>
-Licensed under the MIT license.
View
@@ -51,6 +51,12 @@ board.on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -65,6 +65,12 @@ five.Board().on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -40,6 +40,12 @@ five.Board().on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -42,6 +42,12 @@ board.on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -55,6 +55,12 @@ board.on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
@@ -85,6 +85,12 @@ board.on("ready", function() {
[joystick-motor-led.fzz](https://github.com/rwldrn/johnny-five/blob/master/docs/breadboard/joystick-motor-led.fzz)
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -73,6 +73,12 @@ board.on("ready", function() {
[joystick.fzz](https://github.com/rwldrn/johnny-five/blob/master/docs/breadboard/joystick.fzz)
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
View
@@ -28,6 +28,12 @@ board.on("ready", function() {
+
+## Devices
+
+
+
+
## Documentation
_(Nothing yet)_
Oops, something went wrong.

0 comments on commit 5e929ce

Please sign in to comment.