Make port as function in arduino ns