Added one bit to the pin_num and changed the GPIO macro to the correct order