MetkuMods



OLED Technology by 4D Systems


 
Author: Aki Korhonen
Published: 25.06.2009
Product manufacturer: 4D Systems
In English In English
Suomeksi Suomeksi

Image playback from a memory card

Same kind of test for this bigger display too. There isn't any automatic slideshow feature (at the time of writing) as in the serial platform firmware of the small display so this test has to be done in a bit different way (this works for the smaller display too if needed). No video tests this time as the drawing method is so much different compared to the automatic slideshow in the smaller display so the frame rate dropped to somewhere around 1 fps for full screen video.

First the images are loaded to the Graphics Composer program and the saving option is set so that the images are saved as a small raw partition on the microSD card. No need to put any delays between the images this time as it's done later.

 

Introcution to 4D Systems OLED Technology
Images loaded to the Graphics Composer

After the images are saved to the card, clicking the "Gc" button opens a file that contains all the necessary information about sector locations etc.

 

Introcution to 4D Systems OLED Technology
Needed information

I took the comment parts away and pasted the constant lines to the program code. Every image can then be called easily by just writing eg. "photo(0, 0);" which draws the image and aligns the top left corner of it to coordinates (0, 0). Delays between the images can then be done in the code.

#platform "uOLED-32024-P1T"

#constant photo_1	$uSD_SetSector(0x0000, 0x0000);	uSD_Image
#constant photo_2	$uSD_SetSector(0x0000, 0x00E2);	uSD_Image
#constant photo_3	$uSD_SetSector(0x0000, 0x01BC);	uSD_Image
#constant photo_4	$uSD_SetSector(0x0000, 0x02C6);	uSD_Image
#constant photo_5	$uSD_SetSector(0x0000, 0x03D0);	uSD_Image
#constant photo_6	$uSD_SetSector(0x0000, 0x04EC);	uSD_Image

func main()

    if(uSD_Init() == 0)

        print("PLEASE INSERT uSD CARD");
        while(1);

    endif

    repeat
        gfx_Cls();
        photo_1(0, 0);
        pause(2000);
        
        gfx_Cls();
        photo_2(0, 0);
        pause(2000);
        
        gfx_Cls();
        photo_3(0, 0);
        pause(2000);
        
        gfx_Cls();
        photo_4(0, 0);
        pause(2000);
        
        gfx_Cls();
        photo_5(0, 0);
        pause(2000);
        
        gfx_Cls();
        photo_6(0, 0);
        pause(2000);
    forever
endfunc

 

Introcution to 4D Systems OLED Technology
Slideshow running on the bigger display

Get Flash to see this player.




Pages:   1 2 3 4 5 6 7 8 9 10 11 12 



 
  Content in english!
  Sisältö suomeksi!


 Google





 .:Back to top Bandwidth by Mpoli

Copyright © Metku.net, All Rights Reserved.
All content and graphics in MetkuMods are sole property of Jani Pönkkö and may not be reproduced or copied in any manner without written permission from him.
All brand names, trademarks and copyrights are the property of their respective owners.Privacy Policy