soulraven
Newbie level 6
- Joined
- Feb 13, 2009
- Messages
- 13
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Campulung Muscel, Romania
- Activity points
- 1,349
flex_lcd.c
hi, i nead help
i vant to make an animation with ascii
something like this /-|-\
you know the animation, the rotation, but i want to make a function more generaly
animation(LCD_x, LCD_Y, "/-|-\")
how to animate the strings?
i use ccs comiler and for now i make this code
but is not working, how to put the strings on the pointer or matrix, and read step by step the ponter or the matrix?
hi, i nead help
i vant to make an animation with ascii
something like this /-|-\
you know the animation, the rotation, but i want to make a function more generaly
animation(LCD_x, LCD_Y, "/-|-\")
how to animate the strings?
i use ccs comiler and for now i make this code
Code:
void animatie(unsigned char coloana, unsigned char rand, char *animatie[11])
{
int frame;
char top[11];
strcpy(top,animatie.c_str());
//strncpy(top,animatie,2);
for (frame=0;frame<=strlen(animatie);frame++);
{
lcd_gotoxy(coloana,rand);
printf(lcd_putc,"%i",frame);
// lcd_putc(top);
lcd_outtext(animatie[frame]);
}
but is not working, how to put the strings on the pointer or matrix, and read step by step the ponter or the matrix?