Part Number: MSP430FR6989
Tool/software: Code Composer Studio
Hi
Is there a way to speed up the scrolling speed on LCD ?
Best Regards
Graham
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: MSP430FR6989
Tool/software: Code Composer Studio
Hi
Is there a way to speed up the scrolling speed on LCD ?
Best Regards
Graham
Graham,
In hal_LCD.c, line 172, there is a delay before displaying next characters. To increase the speed, reduce this delay. This is shown in the snippet below.
void displayScrollText(char *msg)
{
int length = strlen(msg);
int oldmode = mode;
int i;
int s = 5;
char buffer[6] = " ";
for (i=0; i<length+7; i++)
{
if (mode != oldmode)
break;
int t;
for (t=0; t<6; t++)
buffer[t] = ' ';
int j;
for (j=0; j<length; j++)
{
if (((s+j) >= 0) && ((s+j) < 6))
buffer[s+j] = msg[j];
}
s--;
showChar(buffer[0], pos1);
showChar(buffer[1], pos2);
showChar(buffer[2], pos3);
showChar(buffer[3], pos4);
showChar(buffer[4], pos5);
showChar(buffer[5], pos6);
__delay_cycles(200000);
}
**Attention** This is a public forum