From 2fee15821751d6d02d74a549e9d980decea83cb0 Mon Sep 17 00:00:00 2001 From: Sanyog Date: Tue, 29 Oct 2024 01:30:44 +0530 Subject: [PATCH] Add UART WRITE to display and update main --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 56a9874..d9b83f4 100644 --- a/main.c +++ b/main.c @@ -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 + } }