BMP file on Tinyscreen

OO-MCP · 6 · 8713

OO-MCP

  • Jr. Member
  • **
    • Posts: 6
    • View Profile
Hi there. I'm trying to show a BMP file on the Tinyscreen, but all I get is...Well, nothing. No error messadge and black screen. Uploading the code is going well, but with no result, no display from the BMP file from the SD Card.
The code that I'm using is from Codebender https://codebender.cc/sketch:86070#TinyScreen_Bitmap_Display.ino
Changed both 1.bmp into the filenames on the SD Card. My hardware is the Tinyscreen with USB, batteryplug, buttons and switch and the SD Card print.
Displaying text is working well and I know how to write that code now.
Can anyone help me here?
Just pointing my nose in the correct direction would be fine.
Doing my best...but hey...maybe I'm too old to learn all this :-)



HunterHykes

  • Administrator
  • Full Member
  • *****
    • Posts: 20
    • View Profile
You may want to check out our .tsv video converter tutorial (https://tinycircuits.com/blogs/learn/tsv-video-converter-tutorial). The process detailed in the tutorial works for displaying videos and images from a micro SD card. In my experience, still images just have to be saved as .gif files in order for the program to work properly. This can easily be done with other file formats by opening them in an image editing program such as Paint and saving them as a .gif file. After that, simply follow the tutorial above and you should be able to figure it out!

I hope this helps.

-Hunter


OO-MCP

  • Jr. Member
  • **
    • Posts: 6
    • View Profile
Thank you Hunter. That part is ok now. I was able to play a TSV file on the display. My next step is now trying to switch a tsv file on a buttonpush. Going to play with the code before I'm going to ask for help :-)
Anyhow, I love it...great fun in trying to achieve something :-) :-) :-)


OO-MCP

  • Jr. Member
  • **
    • Posts: 6
    • View Profile
Well, It's easy to use and I'm proud to see the picture on the tiny screen, but...I know it's a sketsh for video and i use it for a picture. With only one picture on the SD card there's no problem at all. Whenever there are more then one pictures on the SD card, the program wil display them one by one...in less then a second. So that's not going like I wish.
I see 2 lines in the code with delay (100) So I try to change the milisec with a bigger number. It does absolutly nothing to the speed in displaying the TSV pictures on the screen. How can i slow this down?


HunterHykes

  • Administrator
  • Full Member
  • *****
    • Posts: 20
    • View Profile
I don't have experience with switching bitmaps on a button push like you're trying to do. However, I believe the quick switching between images is something controlled within the TSV Converter. There should be a "Duration" option that controls this. Now I know this doesn't necessarily solve your problem, which brings me to this next question: are you only going to be working with still images on this project? If so, you may be able to create "sprites" to act as these images for easier switching upon a button push. There may also be another option with the code found within the "TSV Converter Tutorial," however, I haven't explored that much myself.

Let me know what you think!

-Hunter


dulsi

  • Full Member
  • ***
    • Posts: 34
    • View Profile
I don't believe there is anything in the TSV file that specifies duration. I'm guessing that setting a duration would mean it just includes a copy of that image enough times to make it last for that duration which would make the file size larger.


 

SMF spam blocked by CleanTalk