pinMode function now works for setting pin directions