Page 1 of 1

MX031 - Multimedia Files on 4D Eblocks

Posted: Fri Jun 29, 2012 12:35 pm
by DavidA
Article: http://www.matrixmultimedia.com/article.php?a=649

Discuss this article here.

Re: MX031 - Multimedia Files on 4D Eblocks

Posted: Wed Oct 01, 2014 9:47 pm
by Dirk Bubley
Hello David,

I try to load a stored Picture from the SD Card with your discription under FC6.

It Looks to me the the command structure is different.

Your FC Macro Example Shows:

X - This is the X co-ordinate position of where the picture will begin on the screen
Y - This is the Y co-ordinate position of where the picture will begin on the screen
Filename - The filename of the Graphics Composer file on the SD card. (including file extension)
PosH - This is the higher int of the offset for each picture
PosL - This is the lower int of the offset for each Picture


Under FC6 it is different:

Byte X
Byte Y
Byte Width
Byte Height
Byte Color Mode
Byte AddH
Byte AddM
Byte AddL

Any idea to have a process to recall a Picture under FC6??

BR

Dirk

Re: MX031 - Multimedia Files on 4D Eblocks

Posted: Thu Oct 02, 2014 11:24 am
by Benj
Hi Dirk,

I believe there are two controller IC's used by 4D systems.

The Picaso controllers use the filename macro and the Goldilox controllers use the Address L, M, H.

The component should provide the macros compatible for the device your using.

My guess is that the example is for a Picaso type display.

Re: MX031 - Multimedia Files on 4D Eblocks

Posted: Thu Oct 02, 2014 10:39 pm
by Dirk Bubley
Hi Ben,

you are right the scrip is for Picasso and the 4D graphic Composer is creating Picasso files too.
Please see the Composer log text below:

File "CB Logo.jpg" (CB Logo.jpg)
Sector Address 0x000000
X = 0 Y = 0 Width = 128 Height = 128 Bits = 16

Display Image from Memory Card (Serial Command):
Syntax:
@, m, "Filename", terminator, x, y, imagePos(xhi) imagePos(hi), imagePos(mid), imagePos(lo)
Picaso Data:
0x40, 0x6D, "dbtest.Gci", 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
4DSL command:
FATImage("dbtest.Gci", 0, 0, 0x00000000)


I will check the 4D uOLED-126-G1 legacy page in order to see if there is a different Composer.

BR

Dirk

Re: MX031 - Multimedia Files on 4D Eblocks

Posted: Thu Oct 02, 2014 11:39 pm
by Dirk Bubley
Hi Ben,
Hello together,

success Problem solved it is working

Here is what must be done:

1. Choose the following 4D Graphic Composer mode
GC3 Build Output.jpg
GC3 Build Output.jpg (135.01 KiB) Viewed 11337 times
Attention the SD will be formatted during this opperation. Make shure you selct the correct drive!!!

2. In your working Folder you will get the following TXT file (the Folder were you picked you Picture)
My working Folder in this example was on the G: drive as you can see. In the drop down box above you must select your SD Card for the display:


File "CB Logo.jpg" (CB Logo.jpg)
Sector Address 0x000000
X = 0 Y = 0 Width = 128 Height = 128 Bits = 16

Display Image from Memory Card (Serial Command):
Syntax:
@, I, x, y, SectorAdd(hi), SectorAdd(mid), SectorAdd(lo)
Picaso Data:
0x40, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
4DSL command:
NewUSDImage(0, 0, 0x000000)

There you can get the information for Hi, Mid and Lo Sector in order to put these adresses in the DisplayImageFromCard Macro.

3. Below the values you must put into the DisplayImageFromCard Macro.
Display Image from Card Macro.jpg
Display Image from Card Macro.jpg (138.13 KiB) Viewed 11337 times

BR

Dirk