Unable to Scroll text horizontally on a vfd.




i have similar vfd , wish scroll text horizontally found in stores display 1 line of text , scrolls it. have used possible scrolling codes listed in code list, not getting desired results. here's code have far.

code: [select]
void setup()
{
 _delay_ms(500);
 serial.begin(9600);
 vfd.begin(256, 2);
 vfd.interface(interface);
 vfd.ismodelclass(903);
 vfd.isgeneration('s');
 vfd.gud900_reset();
 vfd.gud900_init();
 
 vfd.print("use serial monitor type display");
 vfd.print("` or ~ clear display");
}

void loop()
{
 userinput();
}
/**********************************************************
method: userinput
purpose: allow user enter string of characters
         serial monitor , display string on the
         display.
input: none
returns: void
**********************************************************/
void userinput(){
 while(serial.available()){
 int input = serial.read();
 if(first == true){
 vfd.gud900_clearscreen();
 first = false;
 }
 if(input == 126 || input == 96){
 vfd.gud900_setcursor(0, 0);
 vfd.gud900_clearscreen();
      vfd.println("");
      vfd.println("");
      vfd.println("");
 }else if(input != 10 || input != 13){
 //vfd.gud900_clearscreen();

//make changes below affect text.
  
vfd.gud900_forward();

//vfd.gud900_setfontsize(4, 2, false);

vfd.gud900_setfontsize(2, 2, true);

vfd.gud900_setscrollmode(0x02);  

//vfd.gud900_scrollscreen(1,0, 1, 0);

vfd.gud900_sethorizscrollspeed(0);    // 0  1  2-31



 vfd.print(input);
 serial.write(input);
 }
 }  
}



i have attached code list.



Arduino Forum > Using Arduino > Displays > Unable to Scroll text horizontally on a vfd.


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor