Fixing pinMode function to work with BBB