Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.sim.mcu
Interface Microcontroller.Pin

All Known Implementing Classes:
  ATMegaFamily.Pin

Enclosing interface:
  Microcontroller

public static interface Microcontroller.Pin

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

### connect

    public void connect(Microcontroller.Pin.Input i)

  The `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.

  Parameters:
    `i` - the `Input` instance to connect to

### connect

    public void connect(Microcontroller.Pin.Output o)

  The `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.

  Parameters:
    `o` - the `Output` instance to connect to

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD