How can I make pinMode calls faster?
First, figure out which port and pin you're using. Then, manipulate them.

DDRC &amp;= ~_BV(PC5);
PORTC |= _BV(PC5);


...

DDRF &amp;= ~_BV(PF5);
PORTF |= _BV(PF5);


...

DDRF &amp;= ~_BV(PF0);
PORTF |= _BV(PF0);