Enum PinMode
Specifies the mode of an individual Arduino pin.
public enum PinMode : byte
Fields
Input = 0The digital pin is configured as INPUT.
Output = 1The digital pin is configured as OUTPUT.
Analog = 2The analog pin is configured in analog input mode.
Pwm = 3The digital pin is configured in PWM output mode.
Servo = 4The digital pin is configured in Servo output mode.
Shift = 5The pin is configured as a data pin in shiftOut/shiftIn mode.
I2C = 6The pin is configured to access I2C devices.
OneWire = 7The pin is configured as a 1-wire bus master.
Stepper = 8The pin is configured for stepper motor control.
Encoder = 9The pin is configured for a rotary encoder.
Serial = 10The pin is configured for serial communication.
InputPullUp = 11The digital pin is configured as INPUT_PULLUP.