I've loaded images in rapid succession before, and this time I thought I'd try my hand at making an animated gif and loading that up.
The gif can be found here: http://i.minus.com/iYduVypGN2iQ1.gif
I made it 128x160 just like the display. I pulled it into Visi and set positions to 0, dimensions to 128x160, and a number of start stop frame numbers and delays. No matter what, the image is severely distorted and in the wrong orientation. Here is the code I'm using.
Any ideas?
The gif can be found here: http://i.minus.com/iYduVypGN2iQ1.gif
I made it 128x160 just like the display. I pulled it into Visi and set positions to 0, dimensions to 128x160, and a number of start stop frame numbers and delays. No matter what, the image is severely distorted and in the wrong orientation. Here is the code I'm using.
Code:
#platform "GOLDELOX" // Program Skeleton 1.0 generated 9/15/2013 6:54:24 PM #inherit "4DGL_16bitColours.fnc" #inherit "VisualConst.inc" #inherit "newvisConst.inc" func main() // Uncomment the following if uSD images, fonts or strings used. print("Starting\n") ; while(!media_Init()) putstr("Drive not mounted..."); pause(5000); gfx_Cls(); pause(200); wend // Video1 1.0 generated 9/22/2013 10:20:58 PM media_SetAdd(iVideo1H, iVideo1L) ; // point to the Video1 image gfx_Set(SCREEN_MODE,PORTRAIT) ; // On uTOLED-20-G2 videos+images only work in PORTRAIT media_Video(0, 0) ; // show video gfx_Set(SCREEN_MODE,LANDSCAPE) ; // Restore 'operating' orientation repeat forever endfunc
Comment