Add set pinmode functions