Changed function name from inputMode to pinMode