lcd: andare oltre 40 chr

diciamo piuttosto per il looper..se no per cosa t'avrei stressato per fartelo scrivere? :smiley:

#define LUNGHEZZA_DISPLAY 30

void stampaParziale(char[] stringa,short lungString,short posPartenza){
char strDisplay[LUNGHEZZA_DISPLAY+1];
strDisplay[LUNGHEZZA_DISPLAY]=0;

for(short i=0;i<LUNGHEZZA_DISPLAY;i++)
  strDisplay[i]=stringa[(posPartenza+i)%lungStringa];

display.stampa(strDisplay);//qua usa i metodo per stampare una stringa sul display...eventualmente prima cancella ciò che c'era sul diaply

}

a ogni ciclo,incrementi di uno posPartenza e lo resetti quando è uguale a LUNGHEZZA_DISPLAY