|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorc.DigitalInput
public class DigitalInput
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 |
|---|
public DigitalInput(Orc orc,
int port,
boolean pullup,
boolean invert)
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 |
|---|
public boolean getValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||