def set_pin_mode(pin, mode)
      pins[pin].mode = mode
      write(PIN_MODE, pin, mode)
    end
def set_pin_mode(pin, mode)
      pins[pin].mode = mode
      write(PIN_MODE, pin, mode)
    end
Public: Set the mode for a pin.

 pin  - The Integer pin to set.
 mode - The Fixnum mode (INPUT, OUTPUT, ANALOG, PWM or SERVO)

 Examples

   set_pin_mode(13, OUTPUT)

 Returns nothing.