Char uart_rd on TFT display ILI9341

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 32-bit PIC MCUs
Post Reply
Author
Message
dionescristian
Posts: 3
Joined: 23 May 2011 22:46

Char uart_rd on TFT display ILI9341

#1 Post by dionescristian » 09 Mar 2018 20:22

Somebody can help me for fix this issue a just want to write on TFT LCD some ASCII characters received from the uart.
I not put the complete the setup of tft is ok showing correct background image but the function TFT Write text does not working.


//////////

char uart_rd;

void main() {
ANSEL = 0; // Configure AN pins as digital
ANSELH = 0;

UART1_Init(9600); // Initialize UART module at 9600 bps
Delay_ms(100); // Wait for UART module to stabilize

UART1_Write_Text("Start");
UART1_Write(10);
UART1_Write(13);

while (1) { // Endless loop
if (UART1_Data_Ready()) { // If data is received,
uart_rd = UART1_Read(); // read the received data,

TFT_Write_Text(uart_read, 20, 50);
}
}
}

Thanks

User avatar
strahinja.jacimovic
mikroElektronika team
Posts: 200
Joined: 18 Dec 2017 18:19

Re: Char uart_rd on TFT display ILI9341

#2 Post by strahinja.jacimovic » 12 Mar 2018 18:01

Hi,

You have to convert the data received via UART to text first and then display it on TFT.

Kind regards,
Strahinja Jacimovic

Post Reply

Return to “PIC32 PRO Compilers”