Announcement

Collapse
No announcement yet.

Need help on stoping an animation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need help on stoping an animation

    Because the Picaso has no function like uSD_Frame to play a video as single frames I tried a different approach.
    I splitted the GIF file into separate frames and then I disyplay them with the following code
    HTML Code:
    func StartWaitAnim()
    var x,y;
    var i;
    x:=50;
    y:=290;
    dowait:=1;
    repeat
    wait001_jpg(x,y);
    pause(40);
    wait002_jpg(x,y);
    pause(40);
    wait003_jpg(x,y);
    pause(40);
    wait004_jpg(x,y);
    pause(40);
    wait005_jpg(x,y);
    pause(40);
    wait006_jpg(x,y);
    pause(40);
    wait007_jpg(x,y);
    pause(40);
    wait008_jpg(x,y);
    pause(40);
    wait009_jpg(x,y);
    pause(40);
    wait010_jpg(x,y);
    pause(40);
    wait011_jpg(x,y);
    pause(40);
    wait012_jpg(x,y);
    pause(40);
    wait013_jpg(x,y);
    pause(40);
    wait014_jpg(x,y);
    pause(40);
    wait015_jpg(x,y);
    pause(40);
    wait016_jpg(x,y);
    pause(40);
    wait017_jpg(x,y);
    pause(40);
    wait018_jpg(x,y);
    pause(40);
    wait019_jpg(x,y);
    pause(40);
    wait020_jpg(x,y);
    pause(40);
    wait021_jpg(x,y);
    pause(40);
    wait022_jpg(x,y);
    pause(40);
    wait023_jpg(x,y);
    pause(40);
    until (dowait==0);
    
    endfunc
    This works fine but after starting this function the Picaso does not respond on any serial communication? So it is impossible to set the dowait:=0; for stopping the animation.
    How can I stop a animation o Picaso platform??
Working...
X