Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created November 7, 2017 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmarr58/dae7b840d600c000b61727e867eece4c to your computer and use it in GitHub Desktop.
Save esmarr58/dae7b840d600c000b61727e867eece4c to your computer and use it in GitHub Desktop.
unsigned char ReceiveByte( void ){ //Función para recibir un byte
while ( !(UCSRA &(1 << RXC)) );//Esperar la recepción
return UDR; //Retornar el dato tomado de la UART
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment