Commit 3d414ea9 authored by Martin Enriquez's avatar Martin Enriquez

Contesta con la uart con el mismo dato que se le envio, cuando lo recibe

parent 2f2ddc4c
......@@ -35,7 +35,7 @@
#include "configuracion.h"
#include "mcu.h"
unsigned char data;
unsigned char data,flag=0;
int main (void) {
inicializarTodo();
ledBlink();
......@@ -48,5 +48,8 @@ int main (void) {
ISR(USART_RXC_vect) {
if(recibirByteUART() == 0xDA)
LED ^= 1;
{
LED ^= 1;
transmitirByteUART(data);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment