orc
Class DigitalInput

java.lang.Object
  extended by orc.DigitalInput

public class DigitalInput
extends java.lang.Object

Represents a digital input on the simple digital IO pins.


Constructor Summary
DigitalInput(Orc orc, int port, boolean pullup, boolean invert)
          Initialize an input-only pin.
 
Method Summary
 boolean getValue()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigitalInput

public DigitalInput(Orc orc,
                    int port,
                    boolean pullup,
                    boolean invert)
Initialize an input-only pin.

Parameters:
port - Digital I/O port number, simple digital I/O are [0,7], fast digital I/O are [8,15]. Note that on fast ports, pull-ups are always enabled.
Method Detail

getValue

public boolean getValue()