Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Edited readme.md via GitHub

  • Loading branch information...
commit a1b3c5ab27bdcaefd6f626c8b56117fb75b298ef 1 parent 772a558
@jgautier jgautier authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 readme.md
View
6 readme.md
@@ -53,15 +53,21 @@ If you run *firmata* from the command line it will prompt you for the usb port.
board.pins[board.analogPins[5]];
##methods
*board.pinMode(pin,mode)*
+
Set a mode for a pin. pin is the number of the pin and the mode is on of the Board.MODES values.
+
*board.digitalWrite(pin,value)*
+
Write an output to a digital pin. pin is the number of the pin and the value is either board.HGH or board.LOW.
*board.digitalRead(pin,callback)*
+
Read a digital value from the pin. Evertime there is data for the pin the callback will be fired with a value argument.
*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 with a value argument.
Please sign in to comment.
Something went wrong with that request. Please try again.