arduino set pin mode on avr atmega328p code example Example: arduino pinMode pinMode(Pin_number, State); ex: pinMode(2, HIGH);