Display jpg and png on Tiny Screen

kagiac · 4 · 4063

kagiac

  • Jr. Member
  • **
    • Posts: 5
    • View Profile
I'd like to display a slideshow of images(jpg, png,etc)  from a SD card on the Tiny Screen.   I have the SDshield. Does anyone know how to do this?

Thanks!


blant0n

  • Newbie
  • *
    • Posts: 3
    • View Profile
There is a tutorial for displaying static and animated images on the tinyscreen here <https://tinycircuits.hackster.io/tbatey_tiny-circuits/tinyscreen-animated-and-static-images>. There are two different programs there, one is a simple player and the other has a menu to select what video to play off the sd card. I'm assuming that the simple video player will play all the compatible files on the sd card until they are done and then loop back to the start, so that should be good for you. Either way, if you were willing to play with the code im sure you could get either to work for you.


kagiac

  • Jr. Member
  • **
    • Posts: 5
    • View Profile

Ben Rose

  • Administrator
  • Hero Member
  • *****
    • Posts: 392
    • View Profile
JPG and other compressed formats are not possible, but we have a BMP display example at https://codebender.cc/sketch:86070

Displaying a BMP is still a bit slow- a lot more data has to be loaded from the SD card. blant0n's suggestion of using the tutorial with the converter to a raw format will result in faster display of a single frame.


 

SMF spam blocked by CleanTalk