Method PinMode NamespaceBonsai.Arduino AssemblyBonsai.Arduino.dll PinMode(int, PinMode) Sets the mode of an individual Arduino pin. public void PinMode(int pin, PinMode mode) Parameters pin int The number of the pin to configure. mode PinMode The pin mode.