'Initialize the Pin.'

def __init__(self, pin, options):

    self._pin = pin
    self._name = options.get(CONF_NAME)
    self.pin_type = CONF_TYPE
    self.direction = 'out'
    self._state = options.get(CONF_INITIAL)
    if options.get(CONF_NEGATE):
        self.turn_on_handler = arduino.BOARD.set_digital_out_low
        self.turn_off_handler = arduino.BOARD.set_digital_out_high
    else:
        self.turn_on_handler = arduino.BOARD.set_digital_out_high
        self.turn_off_handler = arduino.BOARD.set_digital_out_low
    arduino.BOARD.set_mode(self._pin, self.direction, self.pin_type)
    (self.turn_on_handler if self._state else self.turn_off_handler)(pin)
