timeout changed

rx tx pin direction changes has been added on the readfuncion