Char uart_rd on TFT display ILI9341
Posted: 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
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