|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Pin interface encapsulates the notion of a physical
pin on the microcontroller chip. It is generally used in wiring up
external devices to the microcontroller.
| Nested Class Summary | |
static interface |
Microcontroller.Pin.Input
The Input interface represents an input pin. |
static interface |
Microcontroller.Pin.Output
The Output interface represents an output pin. |
| Method Summary | |
void |
connect(Microcontroller.Pin.Input i)
The connect() method will connect this pin to the
specified input. |
void |
connect(Microcontroller.Pin.Output o)
The connect() method will connect this pin to the
specified output. |
| Method Detail |
public void connect(Microcontroller.Pin.Input i)
connect() method will connect this pin to the
specified input. Attempts by the microcontroller to read from this
pin when it is configured as an input will then call this instance's
read() method.
i - the Input instance to connect topublic void connect(Microcontroller.Pin.Output o)
connect() method will connect this pin to the
specified output. Attempts by the microcontroller to write to this
pin when it is configured as an output will then call this instance's
write() method.
o - the Output instance to connect to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||