"This is a string. " Rotate to : "his is a string. T" Rotate to : "is is a string. Th" .... I use it for LCD Display for Scroll.
Hello.
void LCD_print_with_rotate(char *aStr) { unsigned char i, j, k; j=strlen(aStr); for (i=0; i<j; i++) { lPtr=&aStr[i]; LCD_clear_screen(); for (k=0; k<j; k++) { LCD_putchar(*lPtr++); if (!*lPtr) lPtr=aStr; } } }
..add
{char *lPtr;}