Skip to content
Browse files

Merge branch 'master' of github.com:jgautier/firmata

  • Loading branch information...
2 parents b98e49b + 7c22fd0 commit d6a9db23818f7d7d764f6216b76a7429efc182e0 @jgautier jgautier committed Mar 28, 2011
Showing with 13 additions and 9 deletions.
  1. +13 −9 readme.md
View
22 readme.md
@@ -7,14 +7,18 @@ Arduino running firmata (tested with v2.2)
var firmata = require('..lib/firmata');
var board = new firmata.Board('path to usb',function(){
//arduino is ready to communicate
- });
+ });
+View test folder for examples.
#Methods:
-*board.digitalWrite(pin,value)*
- Write an output to a digital pin. pin is the number of the pin and the value is either board.HIGH or board.LOW
-*board.pinMode(pin,state)*
- Set a mode for a pin. pin is the number of the pin and state is one of the following. board.INPUT, board.OUTPUT, board.PWM
-*board.analogWrite(pin,value)*
- Write an output to a digital pin. pin is the number of the pin and the value is between 0 and 255.
-*board.analogRead(pin,callback)*
- Read an input for an analog pin. Every time there is data on the pin the callback will be fired.
+*board.digitalWrite(pin,value)*
+ Write an output to a digital pin. pin is the number of the pin and the value is either board.HIGH or board.LOW
+
+*board.pinMode(pin,state)*
+ Set a mode for a pin. pin is the number of the pin and state is one of the following. board.INPUT, board.OUTPUT, board.PWM
+
+*board.analogWrite(pin,value)*
+ Write an output to a digital pin. pin is the number of the pin and the value is between 0 and 255.
+
+*board.analogRead(pin,callback)*
+ Read an input for an analog pin. Every time there is data on the pin the callback will be fired.

0 comments on commit d6a9db2

Please sign in to comment.
Something went wrong with that request. Please try again.