Search wiring.org.co:

Libraries \ FirmataProcessing

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.

Name |

### Wiring

Examples |
    //Import the Serial i/o and the Wiring Libraries
    import processing.serial.*;
    import Wiring.*;
    //Create a Wiring object
    Wiring wiring;
    void setup() {
      //print the serial devices list
      println(Wiring.list());
      //inicialized the wiring object
      wiring = new Wiring ( this, Wiring.list()[1], 57600);
      //sets the pinMode
      wiring.pinMode(48, Wiring.OUTPUT);
    }
    void draw() {
      //.........
    }
Description | The method Wiring() creates the Wiring object, wich starts the Firmata communication. Note: The firmata protocol have a minimum rate of 57600 bauds.
Syntax |
    Wiring(parent, name, rate)
Methods |

list() |
pinMode() |
digitalRead() |
digitalWrite() |
analogRead() |
analogWrite() |
servoWrite() |

Parameters |

parent | El parent should be "this".
name | The name of the device.
rate | The rate of the connection. For the Firmata Protocol the rate is 56700 bauds.

Returns | None
Usage | Application

Updated on July 07, 2011 11:10:08pm PDT