#define CS_PIN 5
#define BUF_SIZE 512
HD_parola myDisplay = HD_parola(HARDWARE_TYPE,CS-PIN,MAX_DEVICES);
void setup() {
Serial.begin(9600);
myDisplay.begin();
myDisply.SetIntensity(12);
myDisplay.displayClear();
pinMode(2,INPUT);
}
void loop() {
int pot analogRead(2);
char potstr[BUF_SIZE];
snprintf(potstr,BUF_SIZE,"%d",pow)
if(myDisplay.displayAnimate()){
myDisplay.displayText(potstr,PA_CENTER,100,100,PA_SCROLL_LEFT,PA_SCROLL_LEFT);
}
}