Announcement

Collapse
No announcement yet.

bmp display from uSD (FAT)

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

  • bmp display from uSD (FAT)

    Hello everybody!
    This is my first post on this forum and I'm also new in using 4D systems products.I just got a uLCD-32PT and started to play with it.
    I succeeded to do a few basic things quite easily but now, I'm trying to use the uSD.I'm using my module in SGC mode with the correct pmcc file in it.My uSD is formatted in FAT and I used the Composer tool to load a little bmp in it. I have the .dat file with the precious informations:

    "batterie.bmp" 0000 0000 277 8




    With my micro controller I send the following serial command (after Ack of autobaud of course):




    406D62617474657269652E626D70000010001000000000




    40 6D: command for displaying from SD

    62 61 74 74 65 72 69 65 2E 62 6D 70: the filename

    00: the terminate char

    00 10: X pos

    00 10: Y pos

    00 00 00 00: position in uSD




    I don't see the mistake here but I receive a not ack from the display.

    Can you help me to understand what's wrong?




    Thank you for your help and support.




    JFry

  • #2


    Okay!I found my mistake. I didn't read the documentation correctly.The filename refers to .cgi file not the picture file name...
    Anyway, this leads me to another question: I understand from the datasheet that the .cgi filename should be 12 chars long but the composer tool doesn't specify it. Is there a constraint on the filename?
    Thank you.
    JFry

    Comment


    • #3


      It just has to be a 'standard short filename'. i.e. 1-8 chars for the filename and 0-3 (usually 3) chars for the extension.
      Mark

      Comment


      • #4


        Ok!
        Thank you for this information!

        JFry

        Comment

        Working...
        X