Add UART WRITE to display and update main

This commit is contained in:
Sanyog Nevase Nevase 2024-10-29 01:30:44 +05:30
parent 2833cac1a3
commit 2fee158217
1 changed files with 3 additions and 3 deletions

6
main.c
View File

@ -73,11 +73,10 @@ void UART1_RXTX_to_DISPLAY(char RX_DATA)
{
GPIO_PORTF_DATA_R &= 0x00; // RED LED FOR JUNK DATA
}
UART1_WRITE(RX_DATA); // SEND RECEIVED DATA TO DISPLAY
}
int main(void) // MAIN FUNCTION
{
GPIO_PORT_F_init(); // GPIO PORT F INITIALISATION FUNCTION
@ -85,5 +84,6 @@ int main(void) // MAIN FUNCTION
while (1)
{
UART1_RXTX_to_DISPLAY(UART1_READ()); // RECEIVE DATA, SEND RECEIVED DATA TO DISPLAY OR GLOW LED
}
}