Permalink
Browse files

changed formatting

  • Loading branch information...
1 parent f4a0e1b commit 265c3ac15327c6c4657c9387fa5ce785fb323f33 @jgautier jgautier committed Aug 11, 2011
Showing with 8 additions and 8 deletions.
  1. +8 −8 readme.md
View
@@ -52,34 +52,34 @@ 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)*
+ 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)*
+ 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)*
+ 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)*
+ 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)*
+ 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.
- *board.servoWrite(pin,degree)*
+ board.servoWrite(pin,degree)
Write a degree value to a servo pin.
- *board.sendI2CWriteRequest(slaveAddress,[bytes])*
+ board.sendI2CWriteRequest(slaveAddress,[bytes])
Write an array of bytes to a an I2C device.
- *board.sendI2CReadRequest(slaveAddress,numBytes,function(data))*
+ board.sendI2CReadRequest(slaveAddress,numBytes,function(data))
Requests a number of bytes from a slave I2C device. When the bytes are received from the I2C device the callback is called with the byte array.

0 comments on commit 265c3ac

Please sign in to comment.